cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A173420 Triangular numbers which are sums of 4 consecutive primes.

This page as a plain text file.
%I A173420 #14 Sep 08 2022 08:45:50
%S A173420 36,120,780,1596,1830,10440,12090,20706,22578,23436,34716,75466,
%T A173420 101926,107880,115440,154290,191890,207690,231540,261726,271216,
%U A173420 310866,313236,319600,384126,408156,512578,558096,653796,768180,824970,936396,1094460
%N A173420 Triangular numbers which are sums of 4 consecutive primes.
%H A173420 Chai Wah Wu, <a href="/A173420/b173420.txt">Table of n, a(n) for n = 1..10000</a>
%t A173420 Select[Table[Prime[n]+Prime[n+1]+Prime[n+2]+Prime[n+3],{n,2*8!}],IntegerQ[Sqrt[1+8# ]]&]
%t A173420 Select[Total/@Partition[Prime[Range[50000]],4,1],OddQ[Sqrt[1+8#]]&] (* _Harvey P. Dale_, May 29 2021 *)
%o A173420 (Magma) [ t: n in [1..25000] | IsSquare(8*t+1) where t is &+[NthPrime(n+s): s in [0..3]] ]; // _Bruno Berselli_, Apr 28 2011
%Y A173420 Cf. A000040, A000217, A111163, A167788.
%K A173420 nonn
%O A173420 1,1
%A A173420 _Vladimir Joseph Stephan Orlovsky_, Feb 18 2010