OFFSET
1,1
COMMENTS
If x = y then: 13, 37, 881, 4651, 1273609, ...
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
J. S. Gerasimov, x^(y + 1) - y^x, SeqFan list, Aug 18 2014.
EXAMPLE
13 is in this sequence because (1 + 2)^2 + (-2)^2 = 13 is prime where 2 is divisor of 2.
MAPLE
N:= 100000: # To get terms <= N
Res:= NULL:
for y from 2 while 2^y -1 <= N do
z:= y/2^padic:-ordp(y, 2);
if z > 1 and (z <> y or not isprime(z)) then next fi;
for x from y by y do
v:= (1+x)^y + (-x)^y;
if v > N then break fi;
if isprime(v) then Res:= Res, v; fi
od od:
sort(convert({Res}, list)); # Robert Israel, Jan 05 2020
MATHEMATICA
Union@ Flatten@ Table[Select[Map[(1 + n)^# + (-n)^# &, Divisors@ n], PrimeQ], {n, 200}] (* Michael De Vlieger, Apr 29 2017 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Juri-Stepan Gerasimov, Apr 27 2017
EXTENSIONS
Edited by N. J. A. Sloane, Jan 11 2020
STATUS
approved