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.

Previous Showing 21-21 of 21 results.

A271532 a(n) = (-1)^n*(n + 1)*(5*n^2 + 10*n + 1).

Original entry on oeis.org

1, -32, 123, -304, 605, -1056, 1687, -2528, 3609, -4960, 6611, -8592, 10933, -13664, 16815, -20416, 24497, -29088, 34219, -39920, 46221, -53152, 60743, -69024, 78025, -87776, 98307, -109648, 121829, -134880, 148831, -163712, 179553, -196384, 214235, -233136, 253117, -274208, 296439
Offset: 0

Views

Author

Ilya Gutkovskiy, Apr 09 2016

Keywords

Comments

Alternating sum of centered dodecahedral numbers (A005904).
Without signs and up to offset, this is row 5 of the array A284873. - Andrey Zabolotskiy, Oct 10 2017

Crossrefs

Programs

  • Mathematica
    Table[(-1)^n (n + 1) (5 n^2 + 10 n + 1), {n, 0, 38}]
    LinearRecurrence[{-4, -6, -4, -1}, {1, -32, 123, -304}, 39]
  • PARI
    a(n)=(-1)^n*(n+1)*(5*n^2+10*n+1) \\ Charles R Greathouse IV, Jul 26 2016
  • Python
    for n in range(0,10**3):print((-1)**n*(n+1)*(5*n**2+10*n+1)) # Soumil Mandal, Apr 10 2016
    

Formula

G.f.: (1 - 28*x + x^2)/(1 + x)^4.
E.g.f.: exp(-x)*(1 - 31*x + 30*x^2 - 5*x^3).
a(n) = -4*a(n-1) - 6*a(n-2) - 4*a(n-3) - a(n-4).
Previous Showing 21-21 of 21 results.