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.
How would I speed this up?
If I input nmax = 2^60, my program cannot finish.
This solution will fail for nmax = 2; so I had to swap the order of two lines. See Solution 1088355.
wrong, corrected in soln 329062
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.
This really doesn't solve the problem it's just gaming the results.
Ooooooh this is evil.
given 3 sides, find area of this triangle
Project Euler: Problem 9, Pythagorean numbers
2 b | ~ 2 b
Back to basics 25 - Valid variable names
Equal to their cube
Replace NaNs with the number that appears to its left in the row.
Knight's Tour Checker
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office