OFFSET
2,1
LINKS
FORMULA
a(n) <= n+1 with equality iff n belongs to A065296.
EXAMPLE
a(10) = A082576(2) = 5.
PROG
(PARI) a(n) = for (k=2, oo, if (Mod(k, n^#digits(k, n))^k==k, return (k)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Oct 11 2020
STATUS
approved