## Your Favorite Math/Logic Riddles? 1965

shma asks:

*"Whether you're involved in the Sciences, Mathematics, or Engineering, you undoubtedly enjoy finding simple solutions to seemingly difficult problems. I'm sure you all have a favorite mind-bender, and who better to share it with than the Slashdot community? Post your own problems and try to solve others. Just one request: If you have figured out the solution, link to it in a post, rather than write it out where anyone can see it."*What brain benders tickle your fancy?*"Here's a sample to consider: You're in a dark room with 50 quarters, 18 of which are heads up. You are allowed to move around the coins or flip some or all of them, if you wish. Problem is, it's too dark to tell what you're moving or flipping (no, you can't figure it out by touch either). Your job is to split the coins into two groups, each of which has the same number of heads up coins. How do you accomplish this?"*

## Soduku (Score:4, Interesting)

-B

## Link to online version (Score:2)

## Another online version (Score:5, Interesting)

## Re:Three Salesmen (Score:3, Informative)

## Re:Math and science are obsolete (Score:3, Informative)

The way these values are determined is by equating a function like f(taxation) to total GNP or GDP and graphing the results then finding the highest point on a curve where GNP+f(taxation) is a max. Historically large taxes tend to reduce the GDP and sma

## Re:Soduku (Score:3, Insightful)

## Keeping my skills fresh (Score:4, Interesting)

## Re:Keeping my skills fresh (Score:3, Funny)

a^2 + b^2 = c^2!

## The Answer.... (Score:5, Funny)

## Re:Ok, here's mine (Score:3, Interesting)

1

12

1112

3112

132112

1113122112

311311222112

what's the next line?

## Re:Ok, here's mine (Score:4, Insightful)

what's the next line?5.

No finite sequence determines the subsequent.

As such, "math puzzles" of the "what is the next number?" kind are not math puzzles at all--they are psychology and common-knowledge puzzles. They should be stated, "I'm thinking of a number. To me, the number is the next in the following sequence: (...). Your job is to guess, based on what you know of me (or people like me), of mathematics, and of common knowledge, which of the infinite number of mathematical relationships betweeen the numbers in that sequence is the one that is important to me."

People who work in numerical methods are only too aware of how little information finite sequences contain beyond their own bounds. Interpolation is hard enough. Extrapolation is virtually impossible. Even simple sequences like "1,2,3,4..." can have literally anything as the next value--it is trivial to come up with generating functions that give integers for the first few integer arguments and wildly varying irrational values after that. Unless you know what the generating function is, the finite sequence tells you nothing. Guessing the generating function from a finite sequence is all about guessing what the questioner knows and what kind of generating function a person with their knowlege (or common knowledge) is likely to choose that would produce the given sequence.

A modicum of mathematical knowledge is still required, but far more psychology is necessary.

## easy one (Score:5, Funny)

## Re:easy one (Score:5, Interesting)

## Re:easy one (Score:5, Informative)

a^0 = 1

b^0 = 1

c^0 = 1

1 != 2

So, I would submit that that might be true for all nonzero values of n.

## Re:easy one (Score:5, Informative)

aresolutions (even infinitely many of them), and for n > 3, you have to be Andrew Wiles to show that## Re:easy one (Score:3, Interesting)

I have a feeling that means it's not ACTUALLY 1.

## Re:0^0 (Score:5, Funny)

## Re:easy one (Score:3, Informative)

http://www.faqs.org/faqs/sci-math-faq/specialnumb

There were/are mathematicians who argue that 0^0 is 1, and those that argue that it's undefined.

## Sequence (Score:2, Interesting)

## Re:Sequence (Score:2)

## Look and Say (Score:5, Informative)

## Re:Sequence (Score:2)

preceedingline?## Re:Sequence (Score:2)

## One possible solution: (Score:5, Funny)

## Re:One possible solution: (Score:5, Interesting)

Turn a light on.I was once a judge at a "Phyics Olympics" where there was one puzzle in which students had to figure out the wiring if a circuit consisting of a couple of light bulbs and a couple of switches. They were "supposed" to solve the puzzle by flipping the switches, noting what lights were on and off, and inferring the circuit.

One team took the apparatus apart and inspected the wiring.

I gave 'em full marks.

The head judge went spare.

Science is not a game, and there aren't any rules according to which you are "supposed" to solve the problem. Alexander the Great was demonstrating the practice of experimental science when he unravelled the Gordian knot, and Feyrabend was onto something when he said, "Anything goes."

Puzzles set by humans have more to do with communication between the puzzle-setter and the puzzle-solver than anything else. Some people even decry computer-generated puzzles because of this--they say that the pleasure they get from solving puzzles comes from the feeling of interaction with another mind.

## Petals of the Rose (Score:5, Interesting)

Bill Gates is said to have solved the problem by memorizing the combinations first [borrett.id.au], the brute force approach.

It ones of those that requires a knack for seeing the simple things

## He wasn't really using brute force. (Score:3, Interesting)

Anyway I read that story and it didn't appear to me that he was trying to solve it by memorization, but rather that after an hour, seeing hundreds of rolls, he remembered many of them, which isn't all that surprising. What I got out of the story, is that he persistently kept at the problem trying many different ideas until he finally got it, even after everyone else in the group had solved it or

## Re:Petals of the Rose (Score:3, Interesting)

though i can see how frustrating it would be if you didn't pick up on this quickly :)Unfotunately, one rumor says that the smarter you are, the longer it takes to figure out.

Because smart people often fall for complex solutions.

## Re:Petals of the Rose (Score:3, Funny)

I solved it after the first roll. Here's how I did it:

I'm not sure that's how you're :-)

supposedto solve it, but Hey - worked for me## Re:Petals of the Rose (Score:5, Funny)

Max: My teacher tells me beauty is on the inside.

Fletcher: That's just something ugly people say.

-- "Liar Liar"

## Re:Petals of the Rose (Score:3, Funny)

## What angle forms when it is 2:15? (Score:2)

If you have a piece of paper, and you draw any quadrilateral of any size (rhombus, rectangle, or square) on that piece of paper. How can u divide that piece of paper in half so that it also evenly divides teh quadrilateral?

If you have a 5 gallon jug and a 3 gallon jug of water, and a hose so u can refill any as u please. What are the steps to get exactly 4 gallons of water?

## Jugs (Score:3, Interesting)

## Re:What angle forms when it is 2:15? (Score:2)

Fill the 3G and pour it into the empty 5G. Refill the 3G and pour into the 5G until full, this leaves 1 gallon in the 3G. Empty the 5G and pour the contents of the 3G (1 gallon) into the 5G. Now fill the 3G and pour completely into the 5G, making 4 gallons total in the 5G.

## angle answer (Score:3, Informative)

What is the degree of the angle between the hour hand and the minute hand when it is 2:15?22.5 degrees.

Yes, you can do it iteratively until inifinity, but the minute hand is at 90 degrees off 12, and the hour hand is at 60 for 2, plus 30/4 for the

## How do you turn a cabin into a beach hut`? (Score:2)

## Spoiler (Score:2)

"Log cabin plus sea".

## What do you get if you multiply 6 by 9? (Score:3, Interesting)

## Re:What do you get if you multiply 6 by 9? (Score:3, Funny)

## Re:What do you get if you multiply 6 by 9? (Score:3, Interesting)

#define SIX 1+5

#define NINE 8+1

printf("TATLTUAE = %d, SIX * NINE);

## Answer to the Sample Question (Score:2)

## Re:Answer to the Sample Question (Score:5, Insightful)

Simply place any 18 coins into the second group and flip those over.

If you flip a coin over that was heads, it is now tails and is eliminated from consideration. If you flip a coin over that was tails, it marks with heads a coin selected that was not heads. Therefore after 18 coins are flipped, the number of heads in the second pile is equal to the number of heads that are left in the first pile.

## An original brain teaser (Score:2, Interesting)

it...

In the following sequence:

1, 4, 8, 13, 21, 30, 36, 44...

What is the next number and why:

A. 48

B. 50

C. 53

D. 57

E. 61

F. There is no pattern

## the nth root of n (Score:2)

It is not defined for negative values or 0. It is defined only for x>0. At 1, f(x)=1, then it peaks somwehere in 2.71

What I'm really interested in is the first derivative. Where f'(x) is 0, is the maximum of f(x). Just one catch:

no limits in the formula. I don't want something that I need to calculate forever; I want a formula giving me a value I can calculate to an arbitrary precision.The problem comes into play with the (1/x) in the exponent. All attempts to derive this result in a

## For the sake of the rest of the discussion (Score:2)

Now we can move on to questions that can generate some real debate.

## As I was walking to St. Ives... (Score:3, Funny)

## Re:As I was walking to St. Ives... (Score:3, Insightful)

## A True/False Oldie but Goodie (Score:3, Interesting)

Epimenides was a Cretan who made one immortal statement: "All Cretans are liars.""The Epimenides paradox [wikipedia.org] is a problem in logic. This problem is named after the Cretan philosopher Epimenides of Knossos (flourished circa 600 BC), who stated , "Cretans, always liars". There is no single statement of the problem; a typical variation is given in the book Gödel, Escher, Bach (page 17), by Douglas R. Hofstadter.

## Truth vs. Lies (Score:4, Insightful)

Answer(ROT13): Nfx nal dhrfgvba gb juvpu lbh nyernql xabj gur nafjre. Gb qrgrezvar juvpu qbbe vf juvpu lbh arrq gb xabj gur eryngvbafuvc bs gur nafjre lbh ner tvira gb gur gehgu. Gur guvat V yvxr nobhg guvf evqqyr vf vg sbeprf lbh gb pbafvqre gur bcrengbe va gur ybtvpny fgngrzrag gb or gur inevnoyr. Nqqvgvbanyyl crbcyr nera'g hfrq gb nfxvat dhrfgvbaf jura gurl nyernql xabj gur nafjre fb gurl graq abg gb or noyr gb guvax bs n fbyhgvba evtug njnl. Gur jubyr guvat orpbzrf boivbhf jura lbh cbfr n dhrfgvba fhpu nf "Ner gurer gjb fgnghrf urer?"

## Re:Truth vs. Lies (Score:4, Funny)

Curtesey of The 10th Kingdom

## a few of my favs (Score:2)

Other things I like are not necessarily problems, but things that just inspire awe, such as proving that

## Lightbulb problem (Score:5, Interesting)

I like this problem because people are ordinarily good at logic have so much trouble with it. I once had the pleasure of meeting Donald Knuth and stumped him with this puzzle.

## Re:Lightbulb problem (Score:5, Insightful)

Say for example all the bulbs are initially ON, and you flip two of the switches to what you think is on. Then when you flip one of them to what you think is "off" and wait a while, and go in to the room, you'll find two bulbs on, but you'll misidentify them because the one you thought you switched to "off" you actually turned "on". Not to mention they could be in mixed states initially..

## Re:Lightbulb problem (Score:3, Funny)

BTW: Donald Knuth probably hates you.

## Re:Lightbulb problem (Score:3, Insightful)

## Sticky Triangles (Score:5, Interesting)

If I give you 3 sticks, you can make one triangle. If I give you 2 more sticks (5), you can make 2 triangles. If I give you another stick (6), how can you make

4triangles?## The best riddle site on the net (Score:4, Informative)

100 prisoners are imprisoned in solitary cells. Each cell is windowless and soundproof. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his or her own cell. Each day, the warden picks a prisoner equally at random, and that prisoner visits the central living room; at the end of the day the prisoner is returned to his cell. While in the living room, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.

Before this whole procedure begins, the prisoners are allowed to get together in the courtyard to discuss a plan. What is the optimal plan they can agree on, so that eventually, someone will make a correct assertion?

## The King and the Chalice (only for Experts!) (Score:3, Interesting)

The king sits in his central room and the n prisoners are all locked in their sound proof cells. In the king's central chamber is a table with a single chalice sitting atop it. Now, the king opens up a door to one of the prisoners' rooms and lets him into the room, but always only one prisoner at a time! So he lets in just one of the prisoners, any one he chooses, and then asks him a question, "Since I first locked you and the other prisoners into your rooms, have all of you been in this room yet?" The prisoner only has two possible answers. "Yes," or, "I'm not sure." If any prisoner answers "yes" but is wrong, they all will be beheaded. If a prisoner answers "yes," however, and is correct, all prisoners are granted full pardons and freed. After being asked that question and answering, the prisoner is then given an opportunity to turn the chalice upside down or right side up. If when he enters the room it is right side up, he can choose to leave it right side up or to turn it upside down, it's his choice. The same thing goes for if it is upside down when he enters the room. He can either choose to turn it upright or to leave it upside down. After the prisoner manipulates the chalice (or not, by his choice), he is sent back to his own cell and securely locked in.

The king will call the prisoners in any order he pleases, and he can call and recall each prisoner as many times as he wants, as many times in a row as he wants. The only rule the king has to obey is that eventually he has to call every prisoner in an arbitrary number of times. So maybe he will call the first prisoner in a million times before ever calling in the second prisoner twice, we just don't know. But eventually we may be certain that each prisoner will be called in ten times, or twenty times, or any number you choose.

Here's one last monkey wrench to toss in the gears, though. The king is allowed to manipulate the cup himself, k times, out of the view of any of the prisoners. That means the king may turn an upright cup upside down or vice versa up to k times, as he chooses, without the prisoners knowing about it. This does not mean the king must manipulate the cup any number of times at all, only that he may.

Assume that both the king and the prisoners have a complete understanding of the game as I have just explained it to you, and that the prisoners were given time beforehand to come up with a strategy. The king was able to hear the prisoners discuss, however, so also assume that if there is a way to foil a strategy, the king will know it and exploit the weakness. The prisoners must utilize a strategy that works in absolutely every single possible case.

Now you must figure out not only how to keep the prisoners alive, but how to also ensure their eventual freedom. When can any one of them be certain they've all been in the central chamber of the dungeon at least once? And how? Don't try to imagine any trickery like scratching messages in the soft gold of the chalice. The problem is as simple as it sounds. The prisoners have absolutely no way of communicating with each other except through the two orientations of the chalice. If any of them attempts any trickery at all they will all be beheaded. All the prisoners can do is turn the chalice upside down or right side up, as they choose, whenever they are called into the chamber.

(written by a former roomate)

## Re:The King and the Chalice (only for Experts!) (Score:3, Interesting)

Obviously, the most devious thing that the king can do is to always make sure the chalice is rightside up. Therefore, it will always be rightside up. Therefore, the chalice can provide no information. Therefore, it is a red-herring.

With all other avenues of gathering information forbidden, there seems no information left to base an answer on.

## Re:The King and the Chalice (only for Experts!) (Score:3, Insightful)

No, he can't.Sure he can. Read your own damn problem.

That means the king may turn an upright cup upside down or vice versa

up to k timesUp to K times means K or less. Therefore, K is any number. Therefore, the king can do whatever the hell he wants, and the calice provides no information.

Or let's suppose it has to be EXACTLY k times. Either K or zero. Fine. I declare K to be 1.

In this case, if the challice is upside down, the king chooses to flip it K times. If it is rightside up, then the king chooses to f

## MOD PARENT DOWN (Score:3, Insightful)

Your description of the problem does not say

whenk is fixed. A perfectly valid reading of the problem is to suppose that the prisoners are told that the king will decide k when the game begins.You ought to admit that the problem was unclear, instead of insulting everyone who interprets your ambiguity the wrong way.

## Re:MOD PARENT UP (Score:3, Insightful)

## MOD PARENT TROLL (Score:4, Informative)

## Re:The King and the Chalice (only for Experts!) (Score:4, Informative)

*Spoiler* Don't read the following if you don't wanna know the answer:

1) The prisoners elect one of their own to be a counter, the rest we will call non-counters.

2) When a non-counter comes into the chalice room, if he can he will put the chalice right side up. If it's already right side up, he'll leave it alone. However, each non-counter will only do this once. If he's already flipped it in the past, and it's upside down, he'll leave it upside down.

3) Every time the counter comes in, he checks the chalice. If it's upside down, he'll do nothing. If it's right side up, he'll flip it, and add one to his count. Once he's flipped it n times (n being the prisoner count), he knows everyone has done it. If the original state of the chalice is known, the problem can be modified so he only needs to flip it n-1 times.

## Re:The King and the Chalice (only for Experts!) (Score:3, Funny)

"just so I'm sure, you can't bash the kings brains in out of frustration using the chalice, right?"The king knows Kung Fu.

## Re:The King and the Chalice (only for Experts!) (Score:3, Funny)

The king knows Kung Fu.Shouldn't that be

KingFu?-ba-dum-dum!-

## Re:The King and the Chalice (only for Experts!) (Score:3, Insightful)

This solution requires that each prisoner is guaranteed to be called to the room

infinitenumber of times. Otherwise, if there's a maximum number of timestthat a prisoner can be called to the room, then the king could selectk= number of prisoners, call each onettimes in a row, resetting the chalice to original pos## Re:The King and the Chalice (only for Experts!) (Score:3, Insightful)

In your original posting the language leaves much open to speculation because you spend several sentences clarifying one point and casually make another point. Ex: You dwell on the point that the cells are sound proof but make no mention of other senses such as sight. Is there a window from the cells to the central room? You dwell on the m

## hats (Score:3, Interesting)

you have five hats (two red, three black) and three people. you queue the people up in order of height and have them face the same way (this way the tallest person can see the two people in front of him/her, the middle person can see the shortest person, and the shortest person can't see anyone). you put a hat on each person's head and instruct them that they are not allowed to take the hat off or turn around. you then ask them to tell you what color their hat is. after a while, the person at the front of the line correctly announces the color of his/her hat. how did the person at the front of the line know and what were the other hat colors?

## Re:hats (Score:3, Interesting)

Knowing this, the second person looks at the hat in front of him. If he sees a red hat, he knows his is black. Since he does not see a red hat, his is either red or black, he doesn't know. But knowing this, the first guy can deduce that his hat is black.

I don't think you can know what the oth

## you're given a globe (Score:3, Interesting)

## My all-time favorite logic puzzle (Score:5, Interesting)

But anyway, logic puzzles. This logic puzzle is excellent. I've had it up on my site (http://www.xkcd.com/blue_eyes.html [xkcd.com]), and after I got boingboing'ed I got a lot of email about it, so I've been able to tweak the wording to get rid of most of the confusing stuff, leaving only the logic. It's extremely subtle; I've never seen anything like it.

Here's the puzzle:

A group of people live on an island. They are all perfect logicians -- if a conclusion can be logically deduced, they will do it instantly. No one knows the color of their eyes. Every night at midnight, a ferry stops at the island. If anyone has figured out the color of their own eyes, they [must] leave the island that midnight.

On this island live 100 blue-eyed people, 100 brown-eyed people, and the Guru. The Guru has green eyes, and does not know her own eye color either. Everyone on the island knows the rules and is constantly aware of everyone else's eye color, and keeps a constant count of the total number of each (excluding themselves). However, they cannot otherwise communicate. So any given blue-eyed person can see 100 people with brown eyes and 99 people with blue eyes, but that does not tell them their own eye color; it could be 101 brown and 99 blue. Or 100 brown, 99 blue, and the one could have red eyes.

The Guru speaks only once (let's say at noon), on one day in all their endless years on the island. Standing before the islanders, she says the following:

"I can see someone with blue eyes."Who leaves the island, and on what night?

There are no mirrors or reflecting surfaces, nothing dumb, It is not a trick question, and the answer is logical. It doesn't depend on tricky wording, and it doesn't involve people doing something silly like creating a sign language or doing genetics. The Guru is not making eye contact with anyone in particular; she's simply saying "I count at least one blue-eyed person on this island who isn't me."

And lastly, the answer is not "no one leaves."

## Re:My all-time favorite logic puzzle (Score:3, Interesting)

I think this stipulation is also necessary:

1) That everyone with blue eyes (at least) is wholly involved in figuring out if they have blue eyes and should comply (bear with me, this is different than you think)

Without this specification, there can be no implicit communication as to the understanding of others.

But to be fair, this is hardly the end of the specifications, and is why I so detest logic puzzles. An earlier poster had it right when they said that a logic puzzle is hardly about

## Re:My all-time favorite logic puzzle (Score:3, Informative)

"The Guru speaks only once (let's say at noon), on

oneday in all their endless years on the island."should read:

"The Guru speaks only once (let's say at noon), on

eachday of all their endless years on the island.""only once... on one day" says that after the first day the Guru never speaks again.

## Coloured stamps (Score:3, Informative)

Suppose there are three people, called A, B and C. Each of these is a "perfect logician"; that is, given some information, they all are able to immediately draw any and all conclusions that can possibly be drawn from this information. Furthermore, suppose there are four red and four green stamps.

Now, all three of them close their eyes, and two stamps are glued to their foreheads, each; the remaining two stamps are put away. Now, they all open their eyes again.

Then, the first, A, is asked whether he knows the colours of the stamps on his forehead. He says he doesn't. Then B is asked the same thing, and also says he doesn't, and afterwards, C is asked and says he doesn't, too. Now, A is asked a second time, and he still says he doesn't know. But then, when B is asked a second time, he now says he does know.

The question is: how?

## Take a Break - 8 Ways to 15 (Score:3, Interesting)

## Re:Riddle (Score:4, Funny)

You haul your ass to a bakery, shell out twenty bucks, and get a box or two full of cupcakes, then you go Cid Highwind on everyone.

"Siddown and eat your goddanm cupcakes!"

## Re:Riddle (Score:3, Insightful)

## Re:Riddle (Score:3, Insightful)

40 people = 20 teenagers (1/2) 10 adults (1/4) and 10 babies (remaining 1/4)

Half the babies (5 people) don't like cupcakes and one fifth of the babies

left(1 person, 1/5 of the five babies left after the 5 that don't like cupcakes). This leaves 34 people who are still wanting cupcakes.Chocolate cupcakes and sprinkled cupcakes are not exclusive of each other because you can have chocolate cupcakes with sprinkles, so you can disregard the whole thing about w

## Re:Riddle (Score:2)

You are making cupcakes for a party at which there will be 40 people. Half of them will be teenagers, a quarter of them will be adults, and the rest will be babies. Half of the babies don't like cupcakes, and one fifth of the babies left are too young to eat cupcakes. Half of the adults and three-quarters of the teenagers like chocolate cupcakes, and the rest of the people like cupcakes with sprinkles on them.This gives us

20 Teeage

## Re:Riddle (Score:3, Interesting)

Your married-with-two-kids co-worker invites you over to dinner. When you arrive a son of the coworker answers the door. What is the probability that the other child is a girl?

Followup:

The co-workers oldest child, a son, answers the door. What is the probability that the other child is a girl?

Most who have gone through a formal stats class have seen this one before, but it is always fun to

## Re:Oldie but goodie... (Score:2, Funny)

## Re:Oldie but goodie... (Score:2, Funny)

## Re:Oldie but goodie... (Score:3, Interesting)

How many cans can a canner can, if a canner can can cans?

## Re:Oldie but goodie... (Score:2)

## Re:Infinity (Score:4, Interesting)

## Solution (Score:4, Interesting)

## Re:Solution (Score:5, Interesting)

Since it's an infinite sequence, you can separate the left-most X and rest still equals 2. Thus X^2 = 2, so X = sqrt(2).Disprufe(TM) by contradiction:

1. Suppose sqrt(2) ^ sqrt(2) ^ sqrt(2) ^

2. Then, sqrt(2) ^ (sqrt(2) ^ sqrt(2) ^

3. Hence, sqrt(2) ^ n = n.

4. Therefore, n obviously equals 4, because sqrt(2) ^ 4 = 4.

5. Hence, sqrt(2) ^ sqrt(2) ^ sqrt(2) ^

What's wrong with this logic?

## Re:Fork in the road (Score:2)

If the person answers "Yes" then take the path.

Reasoning is that the truth teller will always tell the truth and that's the right way. Since the liar will always lie, he'll say "yes" as well and that will be a falsehood.

## Re:Fork in the road (Score:2)

You are stranded on an island, on a path which splits in two directions. One direction takes you to "The Village of Death", the other path takes you to "The Village of Life." There are two tribes of people living on the island, one which ALWAYS TELLS THE TRUTH and one which ALWAYS LIES. A person is standing at the fork in the road. What is the ONE QUESTION (micro-variants don't count) you can ask this person which will ALWAYS get you to the Village of Life. Remember that you don't know which tribe the perso## Re:Fork in the road (Score:2)

## Re:thrice-plus-one-or-half (Score:3, Interesting)

This is called the "Collatz Conjecture [wikipedia.org]": given a positive integer a_1 = n, let a_i = a_{i-1}/2 if a_i is even, and a_i = 3a_{i-1}+1 if n is odd. Repeat. In other words, take a number, divide by two if it's even and take three times it plus one if it's odd, and repeat ad nauseum. Try a f

## Re:thrice-plus-one-or-half (Score:2)

We divide by two if a_{i-1} is even, not if a_i is even. Likewise for a_{i-1} being odd.

The cycle is 4, 2, 1, 4,

Someone remind me not to write math at 1:00 am again... especially when it comes to my thesis!

## Re:Here's a political riddle. (Score:2)

because you don't want him re-elected again.Absent a constitutional convention, that'll be difficult to do.

## Re:Phone Numbers (Score:5, Funny)

## Re:Phone Numbers (Score:4, Informative)

b = last 4 digits

((a*80+1)*250 + b+b -250)/2

(a*20000 + 250 + b*2 - 250)/2

a*10000 + 125 + b - 125

a*10000 + b

It's only amazing if you don't know algebra, and no, a calculator is not required. Then again, if the point is to encourage people to eventually put down their calculator and instead try understanding

whysomething works, then I'm all for it.## Re:Phone Numbers (Score:4, Informative)

(20000a + 250 + 2b - 250) / 2

10000a + b

## Re:Phone Numbers (Score:3)

Multiply the first three digits of your SSN by 1,000,000

Multiply the middle two by 10,000

Add those to the last four digits

Holy shit, how did you do that!?

## Re:Divisible by 3 or 6? (Score:3, Interesting)

## Except... (Score:5, Informative)