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.

A298169 The first of three consecutive primes the sum of which is equal to the sum of three consecutive triangular numbers.

This page as a plain text file.
%I A298169 #12 Feb 11 2018 19:38:21
%S A298169 2,7,31,61,73,271,373,521,619,983,2341,2843,3469,3559,4943,6211,7741,
%T A298169 9173,12073,14869,24083,33923,40177,41611,43651,46349,47269,51031,
%U A298169 53623,60719,64613,88397,91801,93089,114941,124739,126751,127249,134923,141769,145517
%N A298169 The first of three consecutive primes the sum of which is equal to the sum of three consecutive triangular numbers.
%H A298169 Chai Wah Wu, <a href="/A298169/b298169.txt">Table of n, a(n) for n = 1..10000</a> (n = 1..300 from Colin Barker)
%e A298169 31 is in the sequence because 7+11+13 (consecutive primes) = 31 = 6+10+15 (consecutive triangular numbers).
%o A298169 (PARI) L=List(); forprime(p=2, 400000, q=nextprime(p+1); r=nextprime(q+1); t=p+q+r; if(issquare(24*t-15, &sq) && (sq-9)%6==0, listput(L, p))); Vec(L)
%Y A298169 Cf. A000040, A000217, A298168.
%K A298169 nonn
%O A298169 1,1
%A A298169 _Colin Barker_, Jan 14 2018