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.

A148157 Number of walks within N^3 (the first octant of Z^3) starting at (0,0,0) and consisting of n steps taken from {(-1, -1, 1), (-1, 0, 1), (0, 0, 1), (0, 1, -1), (1, -1, 1)}.

Original entry on oeis.org

1, 1, 2, 4, 11, 30, 96, 303, 1029, 3503, 12545, 45113, 167408, 623906, 2378074, 9109462, 35460401, 138679512, 548909493, 2182414131, 8757633284, 35287783051, 143225649827, 583526061368, 2391378062528, 9833988357144, 40635483278352, 168436746650379, 701005791862862, 2925735406975962
Offset: 0

Views

Author

Manuel Kauers, Nov 18 2008

Keywords

Programs

  • Mathematica
    aux[i_Integer, j_Integer, k_Integer, n_Integer] := Which[Min[i, j, k, n] < 0 || Max[i, j, k] > n, 0, n == 0, KroneckerDelta[i, j, k, n], True, aux[i, j, k, n] = aux[-1 + i, 1 + j, -1 + k, -1 + n] + aux[i, -1 + j, 1 + k, -1 + n] + aux[i, j, -1 + k, -1 + n] + aux[1 + i, j, -1 + k, -1 + n] + aux[1 + i, 1 + j, -1 + k, -1 + n]]; Table[Sum[aux[i, j, k, n], {i, 0, n}, {j, 0, n}, {k, 0, n}], {n, 0, 10}]