article

求一個數各個位數上數字(digits)的平方和,得到的新數再次求各個位數上數字平方和,如此重複進行,若最終結果是1,我們就稱原數為幸運數

例如:

2 8 → 22+82=68 → 62+82=100 → 12+02+02=1

3 2 → 32+22=13 → 12+32=10 → 12+02=1

3 7 → 58 → 89 → 145 → 42 → 20 → 4 → 16 → 37

因此28和32是幸運數,而37則不是。

数论

 

This article is licensed under the GNU Free Documentation License. It uses material from the "幸运数".

Home Pageartsbusinesscomputersgameshealthhospitalshomekids & teensnewsphysiciansrecreationreferenceregionalscienceshoppingsocietysportsworld