OFFSET
1,10
COMMENTS
If n is a palindrome > 0, a(n) = 1. See A002113.
a(n) > 0 for n < 10000.
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
a(12) = 3, because 12 takes 3 iterations (12 -> 33 -> 66 -> 132) to become 132, which is divisible by 12.
PROG
(PARI) radd(n) = fromdigits(Vecrev(digits(n)))+n; \\ A056964
a(n) = {my(i=1, k=n, x); while((x=radd(n)) % k, i++; n=x); i; } \\ Michel Marcus, Apr 11 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Daniel Starodubtsev, Mar 26 2020
STATUS
approved