OFFSET
2,1
COMMENTS
a(n) = n if n is an odd prime.
LINKS
Michel Lagneau, Table of n, a(n) for n = 2..10000
FORMULA
a(n) exists for each n > 1; in particular, a(n) <= n + 2. - Charles R Greathouse IV, Nov 13 2012
EXAMPLE
a(6) = 8 because (8+6) = 14 divides 8^2 + 6 = 70 = 2*5*7.
PROG
(PARI) a(n)=for(k=2, n+2, if((k^2+n)%(k+n)==0, return(k))) \\ Charles R Greathouse IV, Nov 13 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Nov 13 2012
STATUS
approved