OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..750 (* First 100 terms from Colin Barker. *)
EXAMPLE
1444 is in the sequence because 1444+1521+1600 (consecutive squares) = 4565 = 1511+1523+1531 (consecutive primes).
MATHEMATICA
p3Q[{a_, b_, c_}]:=With[{pf=PrimePi[NextPrime[a]], pl=PrimePi[NextPrime[c, -1]]}, MemberQ[Total/@Partition[Prime[Range[pf, pl]], 3, 1], a+b+c]]; Select[ Partition[ Range[ 2000]^2, 3, 1], p3Q][[;; , 1]] (* Harvey P. Dale, Oct 10 2025 *)
Select[(Sqrt[3] Sqrt[#-2]-3)/3&/@Total/@Partition[Prime[Range[150000]], 3, 1], IntegerQ]^2 (* Harvey P. Dale, Jan 03 2026 *)
PROG
(PARI) L=List(); forprime(p=2, 400000, q=nextprime(p+1); r=nextprime(q+1); t=p+q+r; if(issquare(12*t-24, &sq) && (sq-6)%6==0, u=(sq-6)\6; listput(L, u^2))); Vec(L)
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Jan 15 2018
STATUS
approved
