OFFSET
1,2
COMMENTS
Terms computed by Theunis de Jong.
LINKS
Eric Angelini, Table of n, a(n) for n = 1..182
Eric Angelini, Self-loopers.
EXAMPLE
26 and 27 loop on themselves, but 28 doesn't.
26 -> 34 -> 35 -> 27 -> 22 -> 26
27 -> 22 -> 26 -> 34 -> 35 -> 27
28 -> 38 -> 43 -> 44 -> 52 -> 49 -> 44.
PROG
(PARI) is(n, S=List())={until(setsearch(Set(S), n=A304440(n)), listput(S, n)); n==S[1]} \\ M. F. Hasler, May 18 2018
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Dec 04 2006
STATUS
approved