« | Home | Recent Comments | Categories | »

Hendecadivisibility

Posted on December 8th, 2009 at 15:22 by John Sinteur in category: News

[Quote:]

To discover whether a number is divisible by 11, add the digits that appear in odd positions (first, third, and so on), and separately add the digits in even positions. If the difference between these two sums is 0 or a multiple of 11, the original number is divisible by 11. Otherwise it’s not.

For example:

11 × 198249381729 = 2180743199019

Sum of digits in odd positions = 2 8 7 3 9 0 9 = 38

Sum of digits in even positions = 1 0 4 1 9 1 = 16

38 – 16 = 22

22 is a multiple of 11, so 2180743199019 is as well.


Write a comment

Comments:

  1. Yay easy divisibility tests for prime factors of 10^k – 1 for small k! (Though I think that this test is actually based on the fact that 11 divides 10^k + 1 for small k, but anyway.)

    My favorite divisibility test, though, works for any number q (other than multiples of 2 or 5, obviously): subtract or add to the original number n any multiple of q until the last digit is 0, then chop it off and repeat the process until you get something you already know is or isn’t a multiple. It’s actually just as much work as actually dividing, though. Whoops. But it’s easier to do in your head. For your example:

    2180743199019
    Add 11, divide by 10: 218074319903
    Add 77, divide by 10: 21807431998
    Subtract 88, divide by 10: 2180743191
    Subtract 11, divide by 10: 218074318
    Add 22, divide by 10: 21807434
    Add 66, divide by 100: 218075
    Subtract 55, divide by 10: 21802
    Add 88, divide by 10: 2189
    Add 11, divide by 100: 22
    We know that’s a multiple of 11, therefore so is the original number. Yeah, that takes much longer, but if you’re trying to check divisibility by something (not a multiple of 2 or 5) without an easily remembered divisibility test (that is, not 3, 9, 11) in your head, this is the way to go about it, since it’s easier than long division (because the desired piece of information is not the quotient but whether the remainder is zero — you get no other information from this method). It’s useful for checking whether the current time is a prime number when you have nothing else to do. ;p

Tea Party Tops GOP on Three-Way Generic Ballot

Posted on December 8th, 2009 at 12:43 by John Sinteur in category: News

[Quote:]

Running under the Tea Party brand may be better in congressional races than being a Republican.

In a three-way Generic Ballot test, the latest Rasmussen Reports national telephone survey finds Democrats attracting 36% of the vote. The Tea Party candidate picks up 23%, and Republicans finish third at 18%. Another 22% are undecided.

Among voters not affiliated with either major party, the Tea Party comes out on top. Thirty-three percent (33%) prefer the Tea Party candidate, and 30% are undecided. Twenty-five percent (25%) would vote for a Democrat, and just 12% prefer the GOP.

Among Republican voters, 39% say they’d vote for the GOP candidate, but 33% favor the Tea Party option.


Write a comment

Iranian banknotes uprising

Posted on December 8th, 2009 at 11:35 by John Sinteur in category: Great Picture

[Quote:]

Anti-government activists are not allowed to express themselves in Iranian media, so theses activists have taken their expressions to another high circulation mass-medium, banknotes. The Central Bank of Iran has tried to take these banknotes out of circulation, but there are just too many of them, and gave up. For the activists’ people it’s a way of saying “We are here, and the green movement is going on”.

iranian-banknotes-green-movement02


Write a comment

Comments:

  1. You can read more about the Iranian Green Movement here:
    http://globalpapersecurity.com/iranians-shift-protest-movement-to-banknotes.htm

Five AIG execs say may quit over pay

Posted on December 8th, 2009 at 10:31 by John Sinteur in category: Robber Barons

[Quote:]

Five senior executives at American International Group told the bailed-out insurer last week they may quit if their compensation was cut significantly by the U.S. pay czar, the Wall Street Journal reported.

The five senior AIG executives indicated on December 1, in written notices, that they were prepared to leave by year-end, the paper reported, citing unnamed sources. Two of them changed their minds over the weekend, the paper added.

Let me guess – they found out no other bank wanted their sorry asses?


Write a comment

Comments:

  1. We should have fired the bums in the first place for putting so many at risk…

  2. Negative. Keep them there (under strict supervision) until the problem is solved. They’re the ones who know where the bodies are buried.

The TSA makes another stupid move

Posted on December 8th, 2009 at 8:35 by John Sinteur in category: Security

[Quote:]

When the TSA make mistakes this egregious it really isn’t all that hard to pick on them.

The latest is that their Screening Management Standard Operating Procedure is published on the internet. I actually like that. I don’t think that security through obscurity is a good idea. Of course the document is marked SSI and includes this footnote on every page:

SENSITIVE SECURITY INFORMATION
WARNING: THIS RECORD CONTAINS SENSITIVE SECURITY INFORMATION THAT IS CONTROLLED UNDER 49 CFR PARTS 15 AND 1520. NO PART OF THIS RECORD MAY BE DISCLOSED TO PERSONS WITHOUT A “NEED TO KNOW,” AS DEFINED IN 49 CFR PARTS 15 AND 1520, EXCEPT WITH THE WRITTEN PERMISSION OF THE ADMINISTRATOR OF THE TRANSPORTATION SECURITY ADMINISTRATION OR THE SECRETARY OF TRANSPORTATION. UNAUTHORIZED RELEASE MAY RESULT IN CIVIL PENALTIES OR OTHER ACTION. FOR U.S. GOVERNMENT AGENCIES, PUBLIC DISCLOSURE GOVERNED BY 5 U.S.C. 552 AND 49 CFR PARTS 15 AND 1520.

So the decision to publish it on the Internet is probably a questionable one. On top of that, however, is where the real idiocy shines. They chose to publish a redacted version of the document, hiding all the super-important stuff from the public. But they apparently don’t understand how redaction works in the electronic document world. See, rather than actually removing the offending text from the document they just drew a black box on top of it. Turns out that PDF documents don’t really care about the black box like that and the actual content of the document is still in the file.

Yup, their crack legal staff managed to screw this one up pretty badly. Want to know which twelve passports will instantly get you shunted over for secondary screening, simply by showing them to the ID-checking agent? Check out Section 2A-2 (C) (1) (b) (iv). Want to know the procedure for CIA-escorted passengers to be processed through the checkpoint? That’s in the document, too.


Write a comment

The five Dukes of Earl

Posted on December 8th, 2009 at 6:39 by John Sinteur in category: News

[Quote:]

The five Dukes of Earl are scheduled to arrive at the royal palace on each of the first five days of May. Duke One is scheduled to arrive on the first day of May, Duke Two on the second, etc. Each Duke, upon arrival, can either kill the king or support the king. If he kills the king, he takes the king’s place, becomes the new king, and awaits the next Duke’s arrival. If he supports the king, all subsequent Dukes cancel their visits. A Duke’s first priority is to remain alive, and his second priority is to become king. Who is king on May 6?


Write a comment

Comments:

  1. The first duke.

    If duke 5 ever gets to visit, he’ll definitely kill, since he’ll be safe afterward.
    If duke 4 ever gets to visit, he’ll definitely support, since when 5 goes, he’ll kill.
    If duke 3 ever gets to visit, he’ll definitely kill, since when 4 goes, he’ll support.
    If duke 2 ever gets to visit, he’ll definitely support, since when 3 goes, he’ll kill.
    If duke 1 ever gets to visit, he’ll definitely kill, since when 2 goes, he’ll support.

    So 1 visits, kills the king, 2 supports, and all further visits are canceled.

  2. The four remaining Dukes of Earl are scheduled to arrive at the royal palace on each of the first five days of May, starting May 2nd. Duke Two is scheduled to arrive on the second day of May, Duke Three on the third, etc. Each Duke, upon arrival, can either kill the king or support the king. If he kills the king, he takes the king’s place, becomes the new king, and awaits the next Duke’s arrival. If he supports the king, all subsequent Dukes cancel their visits. A Duke’s first priority is to remain alive, and his second priority is to become king. Who is king on May 6?

    (or, in other words, would the results be different if there wasn’t an odd number of Dukes?)

  3. Of course — with an even number of Dukes, the first (well, the one labeled 2) would support the original king (“original”, since he’s the newly crowned Duke 1) and he would still be reigning come May 6th. The induction starts from the last duke. This second question is actually a subquestion of the first. Since the well-being of a Duke at the time of his visit does not depend on what happened before, only after, you can go to my previous answer and simply delete all references to duke 1. An informative way to look at the problem is to number the dukes the other way, because then the induction proceeds in the more usual way!

    Though if this were mid-19th century Japan, the king might end up drinking an informal variation on the normal recipe for chrysanthemum tea and dying after four days, killed by his own mother. :)

  4. Or it can be the king.
    The first Duke upon arrival thinks he will kill the king. But then, he thinks that then he will be the king, and the second Duke will kill him. Probably even succeeding.
    So he supports the king, and stays alive.

  5. Best way to avoid dying is to stay out of trouble. :)

  6. Wait until everything sorts itself out and then blow up the lot of them…

  7. i’m with spaceman.

Nokia shuts up Regent Street shop

Posted on December 8th, 2009 at 6:28 by John Sinteur in category: Apple, If you're in marketing, kill yourself

[Quote:]

Nokia is to shut the doors on its high-tech store in London’s Regent Street after failing to tempt consumers out of the bustling Apple store across the road with interactive translucent walls and a glitzy lounge area.

[..]

Ben Wood, an analyst with CCS Insight, said: “There was no question that the store was trying to replicate what Apple had done and build up the brand rather than shift devices. The question in why that strategy has worked for one company and not for the other.”

Probably an analyst with a marketing background, as he seems to be unaware that the actual product matters, and he’s only talking about “building up brands”.


Write a comment

Comments:

  1. Imitation never works, really. Especially not against the one imitated.
    Pressing how same they are, they basically told people: hey, we are the same, wanna switch? No, why would I?

  2. Not to mention which, when Nokia did have some innovative devices (e.g. 770, 800) they basically didn’t keep development going long enough to actually get the things moving…