cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A238622 Number of partitions of n such that floor(n/2) or ceiling(n/2) is a part.

This page as a plain text file.
%I A238622 #6 Mar 08 2014 22:51:29
%S A238622 1,1,2,2,4,3,7,5,11,7,17,11,25,15,36,22,51,30,71,42,97,56,132,77,177,
%T A238622 101,235,135,310,176,406,231,527,297,681,385,874,490,1116,627,1418,
%U A238622 792,1793,1002,2256,1255,2829,1575,3532,1958,4393,2436,5445,3010,6727
%N A238622 Number of partitions of n such that floor(n/2) or ceiling(n/2) is a part.
%F A238622 a(n) + A238623(n) = A000041(n).
%e A238622 a(7) counts these partitions:  43, 421, 4111, 331, 322, 3211, 31111.
%t A238622 z=40; g[n_] := g[n] = IntegerPartitions[n];
%t A238622 t1 = Table[Count[g[n], p_ /; Or[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}]   (* A238622 [or] *)
%t A238622 t2 = Table[Count[g[n], p_ /; Nor[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}]   (* A238623 [nor] *)
%t A238622 t3 = Table[Count[g[n], p_ /; Xnor[MemberQ[p, Floor[n/2]], MemberQ[p, Ceiling[n/2]]]], {n, z}]   (* A238624 [xnor] *)
%Y A238622 Cf. A238623, A238624.
%K A238622 nonn,easy
%O A238622 1,3
%A A238622 _Clark Kimberling_, Mar 02 2014