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.

A274193 Triangular array read by rows: g(n,k) = 1 for n >= 0; g(n,k) = 0 if k > n; g(n,k) = g(n-1,k-1) + g(n-1,3k) for n > 0, k > 1.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 3, 3, 2, 2, 1, 1, 1, 1, 3, 4, 3, 2, 2, 1, 1, 1, 1, 4, 4, 4, 3, 2, 2, 1, 1, 1, 1, 5, 6, 5, 4, 3, 2, 2, 1, 1, 1, 1, 6, 7, 7, 5, 4, 3, 2, 2, 1, 1, 1, 1, 8, 9, 8, 7, 5, 4, 3
Offset: 0

Views

Author

Clark Kimberling, Jun 14 2016

Keywords

Examples

			First  10 rows:
1
1   1
1   1   1
1   1   1   1
1   2   1   1   1
1   2   2   1   1   1
1   2   2   2   1   1   1
1   3   3   2   2   1   1   1
1   3   4   3   2   2   1   1   1
1   4   4   4   3   2   2   1   1   1
		

Crossrefs

Cf. A274194 (row sums), A274195, A274200 (limiting reverse row), A274190, A274196.

Programs

  • Mathematica
    g[n_, 0] = g[n, 0] = 1;
    g[n_, k_] := g[n, k] = If[k > n, 0, g[n - 1, k - 1] + g[n - 1, 3 k]];
    t = Table[g[n, k], {n, 0, 14}, {k, 0, n}]
    TableForm[t] (* A274193 array *)
    u = Flatten[t] (* A274193 sequence *)