OFFSET
1,1
COMMENTS
1848 is the first integer that occurs exactly three times. The next few are 6888, 14280, 16008, 19152. 4920 is the first integer that occurs exactly four times. See A069482 for more details. - Richard R. Forberg, Feb 06 2015
EXAMPLE
120 = 31^2 - 29^2 = 17^2 - 13^2.
MATHEMATICA
Sort@ DeleteDuplicates@ Flatten@ Select[Gather[NextPrime[#]^2 - #^2 & /@ Prime@ Range@ 1200], Length@ # > 1 &] (* Michael De Vlieger, Mar 18 2015 *)
Select[Tally[Differences[Prime[Range[1000]]^2]], #[[2]]>1&][[;; , 1]]//Sort (* Harvey P. Dale, Nov 16 2023 *)
PROG
(PARI) pv(v)=vecsort(vecextract(v, concat("1..", vc-1))) op=2; v=vector(5000); vc=1; forprime (p=3, 5000, v[vc]=p^2-op^2; vc++; op=p) v=pv(v) for (i=2, length(v), if (v[i]==v[i-1], print1(v[i]", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Dec 15 2002
EXTENSIONS
Duplicate terms removed, as suggested by Richard R. Forberg, by Jon E. Schoenfield, Mar 15 2015
STATUS
approved