OFFSET
2,1
COMMENTS
Conjecture: all the terms are in A121707.
From David A. Corneth, Aug 13 2018: (Start)
GCD(n, a(n)) = 1. a(n) is odd.
Is a(n) squarefree?
a(n+1) >= a(n) by definition. (End)
It seems that a(prime(n+1)-1) > a(prime(n)-1) for n > 1. - Thomas Ordowski, Aug 13 2018
LINKS
Michel Marcus, Table of n, a(n) for n = 2..306
FORMULA
Conjecture: a(n) ~ n^2.
PROG
(PARI) isok(k, n)= {for (m=2, n, if (gcd(k, m^k - m) != 1, return (0)); ); return(1); }
a(n) = {my(k=2); while (! isok(k, n), k++); k; } \\ Michel Marcus, Aug 13 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Ordowski, Aug 13 2018
EXTENSIONS
More terms from Michel Marcus, Aug 13 2018
STATUS
approved