OFFSET
0,9
COMMENTS
FORMULA
EXAMPLE
The table starts in row n=0 with columns k >= 0 as:
0, 0, 1, 0, 0, -1, 0, 0, 1, 0, 0, -1, 0, 0, 1, 0, 0, -1, 0, 0, 1, 0, 0 A131531
0, 1, -1, 0, -1, 1, 0, 1, -1, 0, -1, 1, 0, 1, -1, 0, -1, 1, 0, 1, -1 A092220
1, -2, 1, -1, 2, -1, 1, -2, 1, -1, 2, -1, 1, -2, 1, -1, 2, -1, 1, -2 A131556
-3, 3, -2, 3, -3, 2, -3, 3, -2, 3, -3, 2, -3, 3, -2, 3, -3, 2, -3 A164359
6, -5, 5, -6, 5, -5, 6, -5, 5, -6, 5, -5, 6, -5, 5, -6, 5, -5, 6, -5
-11, 10, -11, 11, -10, 11, -11, 10, -11, 11, -10, 11, -11, 10, -11
21, -21, 22, -21, 21, -22, 21, -21, 22, -21, 21, -22, 21, -21, 22
MAPLE
A131531 := proc(n) op((n mod 6)+1, [0, 0, 1, 0, 0, -1]) ; end proc:
A167613 := proc(n, k) option remember; if n= 0 then A131531(k); else procname(n-1, k+1)-procname(n-1, k) ; end if; end proc: # R. J. Mathar, Dec 17 2010
MATHEMATICA
nmax = 13;
A131531 = Table[{0, 0, 1, 0, 0, -1}, {nmax}] // Flatten;
T[n_] := T[n] = Differences[A131531, n];
T[n_, k_] := T[n][[k]];
Table[T[n-k, k], {n, 1, nmax}, {k, n, 1, -1}] // Flatten (* Jean-François Alcover, Oct 20 2023 *)
CROSSREFS
KEYWORD
AUTHOR
Paul Curtz, Nov 07 2009
STATUS
approved