News for hackers. Stuff that matters.
Re:Famous Unsolved Math Problems as Homework by yeldarb on Wednesday May 13, 2015 @02:07PM (#9540822)
Now I'm curious, is it guaranteed to terminate? Is there a name for this problem?

It needs to land on a power of 2 at some point.

Re:Famous Unsolved Math Problems as Homework by ggchappell on Wednesday May 13, 2015 @02:14PM (#9540892)
> Now I'm curious, is it guaranteed to terminate?

No one knows.

> Is there a name for this problem?

The statement that it always terminates is the Collatz Conjecture. It's the first problem in the posted article.

Re:Famous Unsolved Math Problems as Homework by emiliobumachar on Wednesday May 13, 2015 @06:44PM (#9542465)
Just to clarify why, if the result is ever one (the loop's exit condition), then it would be about to get stuck repeating 1,4,2 forever if it didn't exit. If you can prove the loop does not exit (i.e., never reaches one) for some n, then you just proved that, for that n, it would never reach the 1,4,2 repetition pattern even without the stop condition.

It's a clever way to re-state the problem to look more computer-science-y.

Re:Famous Unsolved Math Problems as Homework by vlasev on Wednesday May 13, 2015 @03:20PM (#9541322)
As some of the people have already said, this is the Collatz conjecture aka 3n+1 problem aka half-or-triple-plus-one (HOTPO)problem. The fact that we don't know if the algorithm will certainly land on a power of two shows that it's quite a difficult problem. The famous mathematician Erdos said that math is not yet ready for such problems.

There are heuristic to show that the algorithm should terminate but there are numbers for which it takes an arbitrarily long time for convergence. Furthermore, there are similar problems that have divergence or loops. What makes matters worse is that it's been proven that such problems are undecidable in general.

Re:Famous Unsolved Math Problems as Homework by _asummers on Wednesday May 13, 2015 @02:11PM (#9540868)
It's the Collatz Conjecture. [0]

[0] https://en.wikipedia.org/wiki/Collatz_conjecture