I think this assertion part is obsolete, in the form of "assert(islychrel(n))" or "assert(~islychrel(n))" now will fail directly on the new cody system. my code run at my computer seems fine by the way.
It looks like there is an error in the test suite, because 3664 becomes 475574 after 5 iterations, although the test suite says that it's not a Lychrel number. (In addition, OEIS A023108, which lists all non-Lychrel numbers up to 3675, excludes 3664).
Currently, the test suite seems to be working fine.
Tom Holz cause you and me is misunderstood the problem,the problem is check number "not palindrome"
ok! sorry for this, I missunderstood the problem... :-(
my solution is here:
So, I'M NOT LEADER IN THIS PROBLEM!
Sorry, you are leader... :-(
Count from 0 to N^M in base N.
Make an awesome ramp for a tiny motorcycle stuntman
"Low : High - Low : High - Turn around " -- Create a subindices vector
The Answer to Life, the Universe, and Everything
Give the Shortest Path Through The Maze
Return the first and last characters of a character array
Generate N equally spaced intervals between -L and L
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