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.

A018842 Number of squares on infinite chessboard at n knight's moves from center.

Original entry on oeis.org

1, 8, 32, 68, 96, 120, 148, 176, 204, 232, 260, 288, 316, 344, 372, 400, 428, 456, 484, 512, 540, 568, 596, 624, 652, 680, 708, 736, 764, 792, 820, 848, 876, 904, 932, 960, 988, 1016, 1044, 1072, 1100, 1128, 1156
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A018836 (partial sums), A038522.

Programs

  • Maple
    (1 + 5*x + 12*x^2 - 8*x^4 + 4*x^5)*(1+x)/(1-x)^2; seq(coeff(series(%, x, n+1), x, n), n=0..50);
  • Mathematica
    CoefficientList[Series[(1+5x+12x^2-8x^4+4x^5)(1+x)/(1-x)^2, {x,0,50}], x] (* or *) Join[{1,8,32,68,96},LinearRecurrence[{2,-1},{120,148},46]] (* Harvey P. Dale, Jul 05 2011 *)

Formula

a(n) = 28*n-20, n >= 5.
G.f.: (1 + 5*x + 12*x^2 - 8*x^4 + 4*x^5)*(1+x)/(1-x)^2.

Extensions

Formula corrected by Jean Drabbe, Mar 11 2013