The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A238624 Number of partitions of n such that either both floor(n/2) and ceiling(n/2) are parts or else neither is a part. 4
0, 2, 2, 5, 4, 11, 9, 22, 20, 42, 40, 77, 77, 135, 141, 231, 247, 385, 420, 627, 696, 1002, 1124, 1575, 1782, 2436, 2776, 3718, 4256, 5604, 6437, 8349, 9617, 12310, 14203, 17977, 20764, 26015, 30070, 37338, 43166, 53174, 61469, 75175, 86879, 105558, 121926 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(7) counts these 9 partitions: 7, 61, 52, 511, 43, 2221, 22111, 211111, 1111111.
MATHEMATICA
z=40; g[n_] := g[n] = IntegerPartitions[n];
t1 = Table[Count[g[n], p_ /; Or[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}] (* A238622 [or] *)
t2 = Table[Count[g[n], p_ /; Nor[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}] (* A238623 [nor] *)
t3 = Table[Count[g[n], p_ /; Xnor[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}] (* A238624 [xnor] *)
CROSSREFS
Sequence in context: A240412 A292263 A338528 * A124506 A264687 A112471
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 02 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 May 31 23:52 EDT 2024. Contains 373008 sequences. (Running on oeis4.)