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.

A332987 Sums of two nonzero pentagonal numbers.

This page as a plain text file.
%I A332987 #19 Jun 15 2021 10:46:01
%S A332987 2,6,10,13,17,23,24,27,34,36,40,44,47,52,56,57,63,70,71,73,75,82,86,
%T A332987 92,93,97,102,104,105,114,118,121,122,127,129,139,140,143,146,150,152,
%U A332987 157,162,167,168,177,180,181,184,187,188,196,198,209,211,215,222,227
%N A332987 Sums of two nonzero pentagonal numbers.
%H A332987 Peter Kagey, <a href="/A332987/b332987.txt">Table of n, a(n) for n = 1..10000</a>
%t A332987 Module[{nn=15,pn},pn=PolygonalNumber[5,Range[nn]];Select[Union[ Total/@ Tuples[ pn,2]],#<=Last[pn]&]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Jun 15 2021 *)
%Y A332987 Cf. A000326 (pentagonal numbers).
%Y A332987 Analogs are A000404 (square numbers), A051533 (triangular numbers), A286636 (centered square numbers), A287960 (centered triangular numbers), A288631 (square pyramidal numbers).
%K A332987 nonn
%O A332987 1,1
%A A332987 _Olivier Gérard_, Mar 05 2020