A115026 Limiting value of n under iteration of "sum of the digits raised to the power of the number of digits of n" (A101337).
1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 5, 1, 370, 370, 370, 370, 370, 1, 4, 5, 8, 1, 4, 370, 370, 370, 1, 370, 9, 1, 1, 370, 370, 370, 370, 370, 370, 370, 370, 370, 4, 370, 1, 370, 370, 370, 370, 1, 370, 370, 370, 370, 370, 370, 370, 370, 370, 160, 370, 370, 370, 370, 370, 370
Offset: 1
Examples
a(89)=370 since: 89 (2 digits): 8^2 + 9^2 = 145, 145 (3 digits): 1^3 + 4^3 + 5^3 = 190, 190 (3 digits): 1^3 + 9^3 + 0^3 = 730, 730 (3 digits): 7^3 + 3^3 + 0^3 = 370, 370 (3 digits): 3^3 + 7^3 + 0^3 = 370, etc. So a(89) = 370 since 370 is a fixed point of A101337.
Crossrefs
Cf. A101337.
Programs
-
Mathematica
Table[Min[FindTransientRepeat[NestList[Total[IntegerDigits[#]^IntegerLength[#]]&,n,20],3][[2]]],{n,70}] (* Harvey P. Dale, Jun 08 2022 *)
Comments