Toribash
Original Post
Solve a problem, win over 1k(1000.01 tc)!
The following iterative sequence is defined for the set of positive integers:

n → n/2 (n is even)
n → 3n + 1 (n is odd)

Using the rule above and starting with 13, we generate the following sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1

It can be seen that this sequence (starting at 13 and finishing at 1) contains 10 terms. Although it has not been proved yet (Collatz Problem), it is thought that all starting numbers finish at 1.

Which starting number, under two million, produces the longest chain?

NOTE: Once the chain starts the terms are allowed to go above two million.


First person to post the right answer gets 1000.01 tc

When you post the answer post how you got it, or you suck. And I'll post my c++ code. Btw thanks to wiirus for sending me tc to fund these things.



Previous thread of this was in wibbles and I'm pretty sure no one had posted the correct answer before wibbles was deleted. But post again, if you did.

edit: Man, the event sub forum sucks, hopefully people still participate.

edit 2: So this guy, he pms me and he's trying to convey some kind of information to me. I honestly can barely make out what he was saying but I guess it's along the lines that he's won or something. Then, to top it off, he calls me stupid, with his bad grammar and all.

Originally Posted by boredlolz
1999999.9999999999999999999999999999999999 (the nines continue forever) would because well... it's
1, not over 2000000, and
2, do you know how hard a fraction is to get it to one? sorry, i just exploded your theory pretty much, another solution is pi, since nobody knows how long it actually goes for, since it NEVER ENDING.

also, you cant give .01 of a tc, you stupid or something?

So look here, boredlolz, 1. It's obvious you have to use an integer and 2. Learn some fucking English.
It says right up top to use an integer. Are you stupid or something?

Also, you used to be able to send decimal numbers, if they changed it then that's on them. http://img202.imageshack.us/img202/9201/scr5806513.jpg


EDIT: This will end on 5-13-11 at midnight -8 GMT. The winner will be either; the first person that posted the exact answer, or, if no one got the exact answer the winner will be the person that posted the starting number under 2 million that makes the longest chain posted.




EVENT DONE, THANKS FOR PARTICIPATING
Last edited by isaac; May 11, 2011 at 11:24 PM.
Selling Kung Fu Master Beard $250 USD. Non-negotiable. Now accepting bitcoin! I'll accept an offer as low as 0.15BTC!
Pretend you're as elite as us old schoolers with this unique old schooler only beard!
DesertPunk

Please click this
Visit Buy something from my Poor Quality 3D/2D/Pixel/Photography/Sounds/Writing/Scripts/Anything Shop
Never say it's impossible, im still trying.
PM meamme0, he's the best in maths
Originally Posted by TheFail View Post
does the starting number has to be odd, can it be even?

It's fine as long as it's under 2 million.
Selling Kung Fu Master Beard $250 USD. Non-negotiable. Now accepting bitcoin! I'll accept an offer as low as 0.15BTC!
Pretend you're as elite as us old schoolers with this unique old schooler only beard!
DesertPunk

Please click this
Visit Buy something from my Poor Quality 3D/2D/Pixel/Photography/Sounds/Writing/Scripts/Anything Shop
i still trying it... its weird, i did it with some other numbers and they were chain of 185 numbers long too o_0
Last edited by 0rigami; May 3, 2011 at 07:39 PM.
Originally Posted by Rarnuthug1 View Post
ooooo its number 16 yay i won

16 has 4 terms.

16 - 8 -4 - 2 -1
number 1.109.097 make a loooooooong chain too...

How I did it


i pressed the wrong number once or maybe twice (but i'm so lazy to find it and delete it from the code) so i believe this doesnt make a 211 numbers long chain... maybe 209 or 210
Originally Posted by TheFail View Post
is it
1048577?

Nope. That one is only 73 long.

And yours has only 210 in the chain, 0rigami.


This will end on 5/13/11, person who posted the exact longest, or higher than every one else's will win.
Last edited by isaac; May 5, 2011 at 11:51 PM.
Selling Kung Fu Master Beard $250 USD. Non-negotiable. Now accepting bitcoin! I'll accept an offer as low as 0.15BTC!
Pretend you're as elite as us old schoolers with this unique old schooler only beard!
DesertPunk

Please click this
Visit Buy something from my Poor Quality 3D/2D/Pixel/Photography/Sounds/Writing/Scripts/Anything Shop