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.

A318054 a(n) = n*(n + 1)*(n^2 + n + 22)/24.

Original entry on oeis.org

0, 2, 7, 17, 35, 65, 112, 182, 282, 420, 605, 847, 1157, 1547, 2030, 2620, 3332, 4182, 5187, 6365, 7735, 9317, 11132, 13202, 15550, 18200, 21177, 24507, 28217, 32335, 36890, 41912, 47432, 53482, 60095, 67305, 75147, 83657, 92872, 102830, 113570, 125132, 137557
Offset: 0

Views

Author

Luce ETIENNE, Aug 14 2018

Keywords

Examples

			a(1) = 2; a(2)= 5+2 = 7; a(3) = 10+5+2 = 17; a(4) = 18+10+5+2 = 35; a(5) = 30+18+10+5+2 = 65; a(6) = 47+30+18+10+5+2 = 112.
		

Crossrefs

Partial sums of A177787.

Programs

  • GAP
    List([0..30],n->n*(n+1)*(n^2+n+22)/24); # Muniru A Asiru, Aug 15 2018
    
  • Maple
    seq(coeff(series(x*(2*x^2-3*x+2)/(1-x)^5, x,n+1),x,n),n=0..30); # Muniru A Asiru, Aug 15 2018
  • PARI
    a(n) = n*(n+1)*(n^2+n+22)/24; \\ Michel Marcus, Aug 17 2018

Formula

G.f.: x*(2*x^2-3*x+2)/(1-x)^5.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
a(n) = (1/6)*Sum_{i=1..n} (n-i)*((n-i)^2+11), for n >= 1.