OFFSET
1,4
COMMENTS
Row sums of the triangular array at A212148.
MATHEMATICA
t[n_, k_] := t[n, k] = Count[Map[Median[#] == 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}]
Table[s[n], {n, 1, 20}] (* A212140 *)
%/2 (* A212149 *)
(* Peter J. C. Moses, May 01 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 06 2012
STATUS
approved