OFFSET
1,1
COMMENTS
It is believed that a(n) <= n+2 for all n > 0.
a(n) also exists for all n < 1. - Robert G. Wilson v, Jun 05 2014
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
(2^2+1)/(2+1) = 5/3 is not an integer. (3^3+1)/(3+1) = 28/4 = 7 is an integer. Thus a(1) = 3.
MATHEMATICA
f[n_] := Block[{k = 2}, While[ Mod[ PowerMod[k, k, k + n] + n, k + n] != 0, k++]; k]; Array[f, 90] (* Robert G. Wilson v, Jun 05 2014 *)
PROG
(PARI) a(n)=for(k=2, 1000, s=(k^k+n)/(k+n); if(floor(s)==s, return(k)));
n=1; while(n<100, print(a(n), ", "); n+=1) \\ corrected by Michel Marcus, May 24 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, May 23 2014
STATUS
approved