login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A173423
Triangular numbers which are sums of 6 consecutive primes.
1
630, 990, 2926, 4950, 5886, 12720, 24090, 44850, 60726, 81810, 107416, 128778, 152076, 168490, 177906, 202566, 217470, 258840, 277140, 301476, 314028, 408156, 499500, 613278, 695610, 875826, 903840, 940506, 1205128, 1332528, 1405326
OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (n = 1..528 from Robert Israel)
MAPLE
Primes:= select(isprime, [2, seq(i, i=3..10^7, 2)]):
P6:= Primes[1..-6]+Primes[2..-5]+Primes[3..-4]+Primes[4..-3]+Primes[5..-2]+Primes[6..-1]:
select(t -> issqr(8*t+1), P6): # Robert Israel, Sep 26 2016
MATHEMATICA
f[n_]:=Prime[n]+Prime[n+1]+Prime[n+2]+Prime[n+3]+Prime[n+4]+Prime[n+5]; Select[Table[f[n], {n, 9!}], IntegerQ[Sqrt[1+8# ]]&]
Select[Total/@Partition[Prime[Range[25000]], 6, 1], OddQ[Sqrt[8#+1]]&] (* Harvey P. Dale, Mar 06 2023 *)
PROG
(Magma) [ t: n in [1..22000] | IsSquare(8*t+1) where t is &+[NthPrime(n+s): s in [0..5]] ]; // Bruno Berselli, Apr 28 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved