OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..1400
MATHEMATICA
Table[Length[NestWhileList[Total[Flatten[IntegerDigits/@Divisors[#]]]&, 10^n, #!= 15&]]-1, {n, 90}] (* Harvey P. Dale, Mar 05 2019 *)
PROG
(Python)
from sympy import divisors
def sd(n): return sum(map(int, str(n)))
def f(n): return sum(sd(d) for d in divisors(n, generator=True))
def a(n):
i, c = 10**n, 0
while i != 15: i = f(i); c += 1
return c
print([a(n) for n in range(1, 82)]) # Michael S. Branicky, Dec 10 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Jun 04 2004
STATUS
approved