OFFSET
3,1
COMMENTS
The corresponding value of k is in A188889.
EXAMPLE
a(3)=10 because (k+1)^3 = 10 (mod k^3) for k=3 but no smaller k.
a(4)=46 because (k+1)^4 = 46 (mod k^4) for k=5 but no smaller k.
MATHEMATICA
Table[k=1; While[r=Mod[(k+1)^n, k^n]; r==0 || OddQ[r], k++]; r, {n, 3, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 08 2011
STATUS
approved