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.

Showing 1-1 of 1 results.

A348445 Irregular triangle read by rows: T(n,k) (n >= 0) is the number of ways of selecting k objects from n objects arranged on a line with no two selected objects having unit separation (i.e. having exactly one object between them).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 3, 2, 1, 4, 4, 1, 5, 7, 2, 1, 6, 11, 6, 1, 1, 7, 16, 13, 3, 1, 8, 22, 24, 9, 1, 9, 29, 40, 22, 3, 1, 10, 37, 62, 46, 12, 1, 1, 11, 46, 91, 86, 34, 4, 1, 12, 56, 128, 148, 80, 16, 1, 13, 67, 174, 239, 166, 50, 4, 1, 14, 79, 230, 367, 314, 130, 20, 1, 1, 15, 92, 297, 541, 553, 296, 70, 5
Offset: 0

Views

Author

N. J. A. Sloane, Oct 22 2021

Keywords

Comments

Equivalently, T(n,k) is the number of independent vertex sets of size k in two disjoint paths, one of length floor(n/2) and the other of length ceiling(n/2). - Andrew Howroyd, Jan 01 2024

Examples

			Triangle begins:
  1;
  1,  1;
  1,  2,  1;
  1,  3,  2;
  1,  4,  4;
  1,  5,  7,  2;
  1,  6, 11,  6,  1;
  1,  7, 16, 13,  3;
  1,  8, 22, 24,  9;
  1,  9, 29, 40, 22,  3;
  ...
		

Crossrefs

Cf. A335964.
See A348447 for the circular case.

Programs

  • Mathematica
    Flatten[Drop[CoefficientList[CoefficientList[Series[1/((1+x^2*y)(1-x-x^2*y)),{x, 0, 17}],x],y],2]] (* Michael A. Allen, Dec 27 2021 *)
  • PARI
    T(n) = {[Vecrev(p) | p <- Vec((1 + y*x + (y^2 + y)*x^2 + y^2*x^3)/((1 + y*x^2)*(1 - x - y*x^2)) + O(x*x^n))]}
    { my(A=T(10)); for(i=1, #A, print(A[i])) } \\ Andrew Howroyd, Jan 01 2024

Formula

T(n,k) = A335964(n+2,k).
T(n,0) = 1.
T(n,1) = n.
T(1,k) = 0 if k>1.
T(n,k) = T(n-1,k) + T(n-3,k-1) + T(n-4,k-2).
G.f.: (1 + y*x + (y^2 + y)*x^2 + y^2*x^3)/((1 + y*x^2)*(1 - x - y*x^2)). - Andrew Howroyd, Jan 01 2024

Extensions

Terms corrected and extended by Michael A. Allen, Dec 27 2021
Showing 1-1 of 1 results.