login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A212146 Number of subsets of {1,...,n} having mean=median. 3
1, 3, 7, 13, 23, 37, 59, 91, 141, 217, 341, 541, 879, 1453, 2455, 4217, 7371, 13047, 23375, 42259, 77027, 141299, 260695, 483221, 899471, 1680269, 3149075, 5918701, 11153461, 21067693, 39881625, 75647719, 143756049, 273654821, 521769373, 996334961, 1905214687 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = sum of terms of row n of the triangle A212139.
a(n) = 1+2*A212147(n).
LINKS
MATHEMATICA
t[n_, k_] := t[n, k] = Count[Map[Median[#] == Mean[#] &, Subsets[Range[n], {k}]], True]
Flatten[Table[t[n, k], {n, 1, 12}, {k, 1, n}]] (* A212139 *)
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, 22}] (* A212146 *)
(% - 1)/2 (* A212147 *)
(* Peter J. C. Moses, May 01 2012 *)
CROSSREFS
Cf. A212138.
Sequence in context: A081995 A291141 A053599 * A136851 A155339 A122886
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 06 2012
EXTENSIONS
a(23) from Alois P. Heinz, Feb 12 2014
a(24)-a(37) from Hiroaki Yamanouchi, Oct 03 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 3 11:14 EDT 2024. Contains 375657 sequences. (Running on oeis4.)