OFFSET
3,1
EXAMPLE
a(3) = 10 because 10*3 + 1 = 31 and this number is the smallest prime divisor of the form kn+1
dividing prime(3)^3 - 1 = 5^3-1 = 124 = 2^2*31.
MATHEMATICA
Table[p=First/@FactorInteger[Prime[ n]^n-1]; (Select[p, Mod[#1, n] == 1 &,
1][[1]] - 1)/(n), {n, 3, 40}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jun 05 2011
STATUS
approved