OFFSET
1,4
COMMENTS
Every integer appears infinitely many times in this sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
FORMULA
a(s) = 1 for any squarefree number s.
a(p^2) = p for any prime number p.
a(p^k) = p^A002262(k) for any k >= 0 and prime number p.
a(n!) = 1 for any n >= 0.
a(n! * k) = k for any n >= 1 and k = 1..n.
PROG
(PARI) a(n) = { fordiv (n, d, if (n%d==0, n\=d); if (n<=d, return (n))) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 13 2020
STATUS
approved