The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A306561 Square numbers that are also central polygonal numbers (i.e., square numbers found in the Lazy Caterer's sequence). 1
1, 4, 16, 121, 529, 4096, 17956, 139129, 609961, 4726276, 20720704, 160554241, 703893961, 5454117904, 23911673956, 185279454481, 812293020529, 6294047334436, 27594051024016, 213812329916329, 937385441796001, 7263325169820736, 31843510970040004 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
From Alois P. Heinz, Feb 23 2019: (Start)
G.f.: x*(1+3*x-22*x^2+3*x^3+x^4)/((1-x)*(1+6*x+x^2)*(1-6*x+x^2)).
a(n) = A006452(n)^2 for n >= 1.
{ A000124 } intersect { A000290 }. (End)
MATHEMATICA
LinearRecurrence[{1, 34, -34, -1, 1}, {1, 4, 16, 121, 529}, 25] (* G. C. Greubel, Apr 10 2019 *)
PROG
(PARI) my(x='x+O('x^25)); Vec(x*(1+3*x-22*x^2+3*x^3+x^4)/((1-x)*(1-34*x^2 +x^4))) \\ G. C. Greubel, Apr 10 2019
(PARI) lista(nn) = {for (n=0, nn, if (issquare(cpn = (n^2 + n) / 2 + 1), print1(cpn, ", ")); ); } \\ Michel Marcus, Apr 11 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 25); Coefficients(R!( x*(1+3*x-22*x^2+3*x^3+x^4)/((1-x)*(1-34*x^2 +x^4)) )); // G. C. Greubel, Apr 10 2019
(Sage) a=(x*(1+3*x-22*x^2+3*x^3+x^4)/((1-x)*(1-34*x^2 +x^4))).series(x, 25).coefficients(x, sparse=False); a[1:] # G. C. Greubel, Apr 10 2019
CROSSREFS
Sequence in context: A087335 A204573 A358880 * A226102 A094356 A322236
KEYWORD
nonn
AUTHOR
Moshe Monk, Feb 23 2019
EXTENSIONS
More terms from Alois P. Heinz, Feb 23 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 00:35 EDT 2024. Contains 372666 sequences. (Running on oeis4.)