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.

A360201 Number of induced paths in the n-ladder graph P_2 X P_n.

Original entry on oeis.org

1, 8, 25, 58, 117, 218, 387, 666, 1123, 1868, 3079, 5044, 8229, 13388, 21741, 35262, 57145, 92558, 149863, 242590, 392631, 635408, 1028235, 1663848, 2692297, 4356368, 7048897, 11405506, 18454653, 29860418, 48315339, 78176034, 126491659, 204667988
Offset: 1

Views

Author

Andrew Howroyd, Jan 29 2023

Keywords

Crossrefs

Row 2 of A360199.

Programs

  • Mathematica
    LinearRecurrence[{3,-2,-1,1},{1,8,25,58},40] (* Harvey P. Dale, Dec 28 2023 *)
  • PARI
    Vec((1 + 5*x + 3*x^2)/((1 - x)^2*(1 - x - x^2)) + O(x^40))

Formula

a(n) = 3*a(n-1) - 2*a(n-2) - a(n-3) + a(n-4) for n > 4.
G.f.: x*(1 + 5*x + 3*x^2)/((1 - x)^2*(1 - x - x^2)).