OFFSET
1,1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
Do[k = 2; While[ !IntegerQ[(k^n - 1)/n], k++ ]; Print[k], {n, 1, 80}] (* Robert G. Wilson v *)
PROG
(PARI) a(n)=if(n<0, 0, s=2; while((s^n-1)%n>0, s++); s)
(PARI) a(n)=my(s=2); while(Mod(s, n)^n-1!=0, s++); return(s) \\ Rémy Sigrist, Apr 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Sep 07 2002
STATUS
approved