OFFSET
1,5
COMMENTS
Alternating row sums: -1,-2,-3,-4,-5,-6,...
Let S(n,k) be the number in row n and column k of the array A061865; then S(n,k)+T(n,k)=C(n,k), for 1<=k<=n, n>=1.
LINKS
Alois P. Heinz, Rows n = 1..90, flattened
EXAMPLE
First 7 rows:
0
0...1
0...2....0
0...4....2....1
0...6....6....4....0
0...9....12...11...4....1
0...12...22...26...16...6...0
MATHEMATICA
t[n_, k_] := t[n, k] =
Count[Map[IntegerQ[Mean[#]] &, Subsets[Range[n], {k}]], False]
Flatten[Table[t[n, k], {n, 1, 12}, {k, 1, n}]]
TableForm[Table[t[n, k], {n, 1, 12}, {k, 1, n}]]
s[n_] := Sum[t[n, k], {k, 1, n}]
(* Peter J. C. Moses, May 01 2012 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, May 06 2012
STATUS
approved