OFFSET
1,3
COMMENTS
If n is odd, then a(n) <= 2*n - 1. If n is even, then a(n) <= n - 1. - Thomas Ordowski, Dec 03 2023
PROG
(PARI) a(n) = my(m=0); while ((1+Mod(m, n)^m) != 0, m++); m; \\ Michel Marcus, Dec 03 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved