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.

A298301 The first of three consecutive heptagonal numbers the sum of which is equal to the sum of three consecutive primes.

This page as a plain text file.
%I A298301 #13 Feb 12 2018 09:54:25
%S A298301 7,874,7209,15484,16687,23863,68641,98704,122877,239785,373842,455182,
%T A298301 498852,523723,601966,652036,769230,777573,1003939,1019844,1121245,
%U A298301 1189215,1203049,1420159,1484946,1594804,1606807,1687977,1804975,2292973,2533612,3012363
%N A298301 The first of three consecutive heptagonal numbers the sum of which is equal to the sum of three consecutive primes.
%H A298301 Chai Wah Wu, <a href="/A298301/b298301.txt">Table of n, a(n) for n = 1..10000</a> (n = 1..100 from Colin Barker)
%e A298301 7 is in the sequence because 7+18+34 (consecutive hexagonal numbers) = 59 = 17+19+23 (consecutive primes).
%o A298301 (PARI) L=List(); forprime(p=2, 2000000, q=nextprime(p+1); r=nextprime(q+1); t=p+q+r; if(issquare(120*t-519, &sq) && (sq-21)%30==0, u=(sq-21)\30; listput(L, (5*u^2-3*u)/2))); Vec(L)
%Y A298301 Cf. A000040, A000566, A054643, A298073, A298168, A298169, A298222, A298223, A298250, A298251, A298272, A298273, A298302.
%K A298301 nonn
%O A298301 1,1
%A A298301 _Colin Barker_, Jan 16 2018