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.

A179403 Number of ways to place 2 nonattacking kings on an n X n toroidal board.

Original entry on oeis.org

0, 0, 0, 56, 200, 486, 980, 1760, 2916, 4550, 6776, 9720, 13520, 18326, 24300, 31616, 40460, 51030, 63536, 78200, 95256, 114950, 137540, 163296, 192500, 225446, 262440, 303800, 349856, 400950
Offset: 1

Views

Author

Vaclav Kotesovec, Jan 07 2011

Keywords

Crossrefs

Cf. A061995.

Programs

  • Mathematica
    CoefficientList[Series[2 x^3 (x-2) (5 x^2 - 13 x + 14) / (x - 1)^5, {x, 0, 50}], x] (* Vincenzo Librandi, Jun 01 2013 *)

Formula

Explicit formula: a(n) = 1/2*n^2*(n-3)*(n+3), n>=3.
G.f.: 2*x^4*(x-2)*(5*x^2 - 13*x + 14)/(x-1)^5.