OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..2672
EXAMPLE
83 is a term because 83^2 + 1 = 7^4 + 67^2 = 43^2 + 71^2.
MAPLE
N:= 10^8: # to get all terms <= sqrt(N-1).
PP:= sort([seq(seq(p^k, k=2..floor(log[p](N))), p = select(isprime, [2, seq(i, i=3..floor(sqrt(N)), 2)]))]):
npp:= nops(PP):
res:= {}: R:= 'R':
for i from 2 to npp do
for j from 1 to i-1 do
q:= PP[i]+PP[j];
if q > N then break fi;
if issqr(q-1) then
if assigned(R[q]) then res:= res union {q}
else R[q]:= 1
fi fi
od od:
sort(convert(map(t -> sqrt(t-1), res), list));
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel and Altug Alkan, Feb 19 2017
STATUS
approved