login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
1,2
COMMENTS
This sequence is well defined (see A360941).
LINKS
FORMULA
a(n) = A360941(n) / n.
a(n) = 1 iff n belongs to A007770.
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
Sequence in context: A368352 A132487 A178614 * A284170 A067927 A038546
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 26 2023
STATUS
approved