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.

A185646 Square array A(n,m), n>=0, m>=0, read by antidiagonals, where column m is the expansion of g.f. 1/ (1-x^1*(1-x^(m+1))/ (1-x^2*(1-x^(m+2))/ (1- ... ))).

Original entry on oeis.org

1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 2, 1, -1, 1, 1, 1, 2, 2, 1, 0, 1, 1, 1, 2, 3, 3, 1, 0, 1, 1, 1, 2, 3, 4, 5, 1, -1, 1, 1, 1, 2, 3, 5, 7, 6, 1, 0, 1, 1, 1, 2, 3, 5, 8, 11, 10, 1, 0, 1, 1, 1, 2, 3, 5, 9, 13, 17, 14, 1, 0, 1, 1, 1, 2, 3, 5, 9, 14, 22, 28, 21, 1, 0
Offset: 0

Views

Author

Alois P. Heinz, Aug 29 2013

Keywords

Examples

			Square array A(n,m) begins:
   1,  1,  1,  1,  1,  1,  1,  1,  1, ...
   1,  1,  1,  1,  1,  1,  1,  1,  1, ...
   0,  1,  1,  1,  1,  1,  1,  1,  1, ...
   0,  1,  2,  2,  2,  2,  2,  2,  2, ...
   0,  1,  2,  3,  3,  3,  3,  3,  3, ...
  -1,  1,  3,  4,  5,  5,  5,  5,  5, ...
   0,  1,  5,  7,  8,  9,  9,  9,  9, ...
   0,  1,  6, 11, 13, 14, 15, 15, 15, ...
  -1,  1, 10, 17, 22, 24, 25, 26, 26, ...
		

Crossrefs

Diagonal gives: A005169.

Programs

  • Mathematica
    nMax = 12; col[m_ /; 0 <= m <= nMax] := 1/(1 + ContinuedFractionK[-x^k (1 - x^(m + k)), 1, {k, 1, Ceiling[nMax/2]}]) + O[x]^(2 nMax) // CoefficientList[#, x]&; A = Table[col[m][[1 ;; nMax + 1]], {m, 0, nMax}] // Transpose; a[n_ /; 0 <= n <= nMax, m_ /; 0 <= m <= nMax] := With[{n1 = n + 1, m1 = m + 1}, A[[n1, m1]]]; Table[a[n - m, m], {n, 0, nMax}, {m, n, 0, -1}] // Flatten (* Jean-François Alcover, Nov 03 2016 *)