OFFSET
1,1
COMMENTS
If a(n) = pq, where p > q are both prime, then p is the hypotenuse and q is a leg of a primitive Pythagorean triple. (x^4-y^4 = (x^2+y^2)(x+y)(x-y), hence x-y=1 and x^2+y^2 and x+y are both prime. Note that x^2+y^2 can never be (x+y)^2 so a(n) is never the cube of a prime.)
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
2^4 - 1^4 = 15 = 3*5 and (3, 4, 5) is a Pythagorean triple, so 15 is a term.
6^4 - 5^4 = 671 = 11*61 and (11, 60, 61) is a Pythagorean triple, so 671 is a term.
MAPLE
f:= proc(y) if isprime(2*y+1) and isprime(2*y^2 + 2*y+1) then (2*y+1)*(2*y^2+2*y+1) fi end proc:
map(f, [$1..1000]); # Robert Israel, Jun 16 2020
MATHEMATICA
Select[(#^4 - (#-1)^4) & /@ Range[420], DivisorSigma[0, #] == 4 &] (* Giovanni Resta, May 12 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
C. Kenneth Fan, May 12 2020
STATUS
approved