

A360942


a(n) is the least k such that k*n is a happy number (A007770).


2



1, 5, 43, 7, 2, 32, 1, 4, 125, 1, 4, 16, 1, 2, 75, 2, 4, 64, 1, 5, 49, 2, 1, 8, 4, 5, 44, 1, 7, 43, 1, 1, 34, 2, 2, 32, 24, 5, 28, 7, 2, 26, 2, 1, 25, 5, 2, 4, 1, 2, 22, 4, 17, 22, 8, 5, 16, 8, 4, 32, 11, 5, 21, 3, 2, 17, 7, 1, 22, 1, 13, 16, 3, 12, 15, 8, 11
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

This sequence is well defined (see A360941).


LINKS



FORMULA



PROG

(PARI) a(n) = { forstep (m = n, oo, n, my (h = m, d); while (h > 6, d = digits(h); h = sum(k = 1, #d, d[k]^2)); if (h == 1, return (m / n))) }


CROSSREFS



KEYWORD

nonn,base


AUTHOR



STATUS

approved



