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.

A366269 Hexagonal numbers which are the sum of the first k primes, for some k >= 0.

This page as a plain text file.
%I A366269 #17 Oct 07 2023 21:38:11
%S A366269 0,28,54047322253,14756071005948636,600605016143706003,
%T A366269 41181981873797476176,240580227206205322973571
%N A366269 Hexagonal numbers which are the sum of the first k primes, for some k >= 0.
%H A366269 Wikipedia, <a href="https://en.wikipedia.org/wiki/Hexagonal_number">Hexagonal number</a>.
%H A366269 <a href="/index/Pol#polygonal_numbers">Index to sequences related to polygonal numbers</a>
%F A366269 a(n) = A007504(A366270(n)).
%e A366269 28 is a term because it's both a hexagonal number and the sum of the first five primes (2 + 3 + 5 + 7 + 11).
%t A366269 A366269list[kmax_]:=Module[{p=0},Join[{0},Table[If[IntegerQ[(Sqrt[8(p+=Prime[k])+1]+1)/4],p,Nothing],{k,kmax}]]];A366269list[10^5]
%Y A366269 Intersection of A000384 with A007504.
%Y A366269 Subsequence of A066527.
%Y A366269 Cf. A061890, A364691, A364694, A366270 (corresponding k values).
%K A366269 nonn,hard,more
%O A366269 1,2
%A A366269 _Paolo Xausa_, Oct 06 2023