another interesting math riddle
|
01-13-2018, 10:03 AM
Post: #5
|
|||
|
|||
RE: another interesting math riddle
To find a limit to the numbers that could meet the criteria, we can compare the number of digits of a number to the number of digits of the maximum sum of its digits factorials.
On the Prime in the sequence app, entering U1(N)= CEILING(LOG(9!*N))-N and going to the NUM view tells us that any number with more 7 digits cannot meet the criteria as it is superior to the maximum sum of its digits factorials (9!*8 has only 7 digits and is lower than any 8-digit number) and that for 7 digit numbers only the ones below 9!*7 (2540160) are candidates. So the following program returns all possible solutions : Code: EXPORT TST() On my Prime rev C with the Beta 3 firmware it returns {1,2,145,40585} after 16'21". There may be smarter and faster ways to check for all possible solutions. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)