OFFSET
1,3
COMMENTS
It appears that a(n) > 0 for all n > 2. See the comments in A237114.
LINKS
EXAMPLE
Prime(2)=3 and the smallest semiprime of the form k^3+1 is 2^3+1 = 9 = 3*3, so a(2) = 9 mod 3 = 0.
Prime(3)=5 and the smallest semiprime of the form k^5+1 is 2^5+1 = 33 = 3*11, so a(3) = 33 mod 5 = 3.
MATHEMATICA
L = {0}; Do[p = Prime[k]; n = 1; q = Prime[n] - 1; cp = (q^p + 1)/(q + 1); While[! PrimeQ[cp], n = n + 1; q = Prime[n] - 1; cp = (q^p + 1)/(q + 1)]; L = Append[L, Mod[q^p + 1, p]], {k, 2, 87}]; L
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Feb 06 2014
STATUS
approved