Problem 69. Find the peak 3n+1 sequence value
Solution Stats
Problem Comments
-
6 Comments
Nice one
Good problem!
good.
If you want to add more tests: https://oeis.org/A006884 and https://oeis.org/A006885 contain the relevant sequences.
Why the leading solution size is 0 ? Is it for everyone or just me
@Tanzil Parvez (Emon): the hack solutions (hopefully all) have been deleted from this problem.
Solution Comments
-
1 Comment
How would I speed this up?
If I input nmax = 2^60, my program cannot finish.
-
1 Comment
This solution will fail for nmax = 2; so I had to swap the order of two lines. See Solution 1088355.
-
1 Comment
wrong, corrected in soln 329062
-
1 Comment
Clever pattern, but still gaming the system. This is not the absolute highest Collatz peak as you go to infinity. Yuval, you should be ashamed of submitting this without apologies.
-
4 Comments
This really doesn't solve the problem it's just gaming the results.
Boo.
Ooooooh this is evil.
Pathetic
Problem Recent Solvers1537
Suggested Problems
-
2590 Solvers
-
Reverse the Words (not letters) of a String
330 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
317 Solvers
-
620 Solvers
-
860 Solvers
More from this Author95
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!