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!)
A211373 Sum of median parts of all partitions of n into an odd number of parts. 8
0, 1, 2, 4, 5, 9, 12, 18, 24, 37, 47, 68, 89, 123, 160, 218, 276, 370, 472, 615, 778, 1006, 1259, 1607, 2005, 2530, 3136, 3926, 4833, 6004, 7363, 9070, 11067, 13562, 16461, 20053, 24241, 29370, 35362, 42648, 51135, 61400, 73367, 87718, 104448, 124428, 147655 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
EXAMPLE
a(6) = 12: partitions of 6 into an odd number of parts are [2,1,1,1,1], [2,2,2], [3,2,1], [4,1,1], [6], sum of median parts is 1+2+2+1+6 = 12.
MAPLE
with(combinat):
a:= n-> add(`if`(nops(l)::odd, l[(nops(l)+1)/2], 0), l=partition(n)):
seq(a(n), n=0..40);
MATHEMATICA
a[n_] := Sum[If[OddQ @ Length[l], l[[(Length[l]+1)/2]], 0], {l, IntegerPartitions[n]}];
Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Aug 20 2021, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A241339 A327781 A241411 * A241734 A371171 A039898
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 06 2013
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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)