OFFSET
2,1
COMMENTS
For k=0, the GCD equals 1. Increasing k, the GCD first exceeds 1 at k = A118119(n), and that GCD is a(n).
EXAMPLE
a(2) = 5 because 2^2 + 1 = 5 and 3^2+1 = 2*5;
a(3) = 7 because 5^3 + 1 = 2*3^2*7 and 6^3 + 1 = 7*31.
MAPLE
A186710 := proc(n) local k , g; for k from 1 do g := igcd(k^n+1, (k+1)^n+1) ; if g>1 then return g ; end if; end do: end proc: # R. J. Mathar, Mar 07 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Feb 26 2011
STATUS
approved