A027187
Number of partitions of n into an even number of parts.
Original entry on oeis.org
1, 0, 1, 1, 3, 3, 6, 7, 12, 14, 22, 27, 40, 49, 69, 86, 118, 146, 195, 242, 317, 392, 505, 623, 793, 973, 1224, 1498, 1867, 2274, 2811, 3411, 4186, 5059, 6168, 7427, 9005, 10801, 13026, 15572, 18692, 22267, 26613, 31602, 37619, 44533, 52815, 62338, 73680, 86716, 102162, 119918
Offset: 0
G.f. = 1 + x^2 + x^3 + 3*x^4 + 3*x^5 + 6*x^6 + 7*x^7 + 12*x^8 + 14*x^9 + 22*x^10 + ...
From _Gus Wiseman_, Jan 05 2021: (Start)
The a(2) = 1 through a(8) = 12 partitions into an even number of parts are the following. The Heinz numbers of these partitions are given by A028260.
(11) (21) (22) (32) (33) (43) (44)
(31) (41) (42) (52) (53)
(1111) (2111) (51) (61) (62)
(2211) (2221) (71)
(3111) (3211) (2222)
(111111) (4111) (3221)
(211111) (3311)
(4211)
(5111)
(221111)
(311111)
(11111111)
The a(2) = 1 through a(8) = 12 partitions whose greatest part is even are the following. The Heinz numbers of these partitions are given by A244990.
(2) (21) (4) (41) (6) (43) (8)
(22) (221) (42) (61) (44)
(211) (2111) (222) (421) (62)
(411) (2221) (422)
(2211) (4111) (431)
(21111) (22111) (611)
(211111) (2222)
(4211)
(22211)
(41111)
(221111)
(2111111)
(End)
- N. J. Fine, Basic Hypergeometric Series and Applications, Amer. Math. Soc., 1988; See p. 8, (7.323) and p. 39, Example 7.
- Alois P. Heinz, Table of n, a(n) for n = 0..10000 (first 1000 terms from T. D. Noe)
- George E. Andrews and David Newman, The Minimal Excludant in Integer Partitions, J. Int. Seq., Vol. 23 (2020), Article 20.2.3.
- Arvind Ayyer, Hiranya Kishore Dey, and Digjoy Paul, How large is the character degree sum compared to the character table sum for a finite group?, arXiv:2406.06036 [math.RT], 2024. See p. 13.
- Roland Bacher and Pierre De La Harpe, Conjugacy growth series of some infinitely generated groups, International Mathematics Research Notices, 2016, pp.1-53. (hal-01285685v2)
- N. J. Fine, Problem 4314, Amer. Math. Monthly, Vol. 57, 1950, 421-423.
- Mircea Merca, Combinatorial interpretations of a recent convolution for the number of divisors of a positive integer, Journal of Number Theory, Volume 160, March 2016, Pages 60-75, function p_e(n).
- Michael Somos, Introduction to Ramanujan theta functions
- Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
The Heinz numbers of these partitions are
A028260.
The case of even sum as well as length is
A236913 (the even bisection).
Other cases of even length:
-
A024430 counts set partitions of even length.
-
A034008 counts compositions of even length.
-
A052841 counts ordered set partitions of even length.
-
A174725 counts ordered factorizations of even length.
-
A332305 counts strict compositions of even length
-
A339846 counts factorizations of even length.
A026805 counts partitions whose least part is even.
A072233 counts partitions by sum and length.
A101708 counts partitions of even positive rank.
-
f[n_] := Length[Select[IntegerPartitions[n], IntegerQ[First[#]/2] &]]; Table[f[n], {n, 1, 30}] (* Clark Kimberling, Mar 13 2012 *)
a[ n_] := SeriesCoefficient[ (1 + EllipticTheta[ 4, 0, x]) / (2 QPochhammer[ x]), {x, 0, n}]; (* Michael Somos, May 06 2015 *)
a[ n_] := If[ n < 0, 0, Length@Select[ IntegerPartitions[n], EvenQ[Length @ #] &]]; (* Michael Somos, May 06 2015 *)
-
{a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( sum( k=0, sqrtint(n), (-x)^k^2, A) / eta(x + A), n))}; /* Michael Somos, Aug 19 2006 */
-
my(q='q+O('q^66)); Vec( (1/eta(q)+eta(q)/eta(q^2))/2 ) \\ Joerg Arndt, Mar 23 2014
A067661
Number of partitions of n into distinct parts such that number of parts is even.
Original entry on oeis.org
1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 9, 11, 13, 16, 19, 23, 27, 32, 38, 45, 52, 61, 71, 83, 96, 111, 128, 148, 170, 195, 224, 256, 292, 334, 380, 432, 491, 556, 630, 713, 805, 908, 1024, 1152, 1295, 1455, 1632, 1829, 2049, 2291, 2560, 2859, 3189, 3554, 3959, 4404
Offset: 0
G.f. = 1 + x^3 + x^4 + 2*x^5 + 2*x^6 + 3*x^7 + 3*x^8 + 4*x^9 + 5*x^10 + ...
From _Gus Wiseman_, Jan 08 2021: (Start)
The a(3) = 1 through a(14) = 11 partitions (A-D = 10..13):
21 31 32 42 43 53 54 64 65 75 76 86
41 51 52 62 63 73 74 84 85 95
61 71 72 82 83 93 94 A4
81 91 92 A2 A3 B3
4321 A1 B1 B2 C2
5321 5421 C1 D1
6321 5431 5432
6421 6431
7321 6521
7421
8321
(End)
- B. C. Berndt, Ramanujan's Notebooks Part III, Springer-Verlag, see p. 18 Entry 9 Corollary (2).
- Alois P. Heinz, Table of n, a(n) for n = 0..10000
- Joerg Arndt, Matters Computational (The Fxtbook), end of section 16.4.2 "Partitions into distinct parts", pp.348ff
- Mircea Merca, Combinatorial interpretations of a recent convolution for the number of divisors of a positive integer, Journal of Number Theory, Volume 160, March 2016, Pages 60-75, function q_e(n).
- Michael Somos, Introduction to Ramanujan theta functions
- Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
Numbers with these strict partitions as binary indices are
A001969.
The Heinz numbers of these partitions are
A030229.
Other cases of even length:
-
A024430 counts set partitions of even length.
-
A034008 counts compositions of even length.
-
A052841 counts ordered set partitions of even length.
-
A174725 counts ordered factorizations of even length.
-
A332305 counts strict compositions of even length
-
A339846 counts factorizations of even length.
A008289 counts strict partitions by sum and length.
A026805 counts partitions whose least part is even.
-
b:= proc(n, i, t) option remember; `if`(n>i*(i+1)/2, 0,
`if`(n=0, t, add(b(n-i*j, i-1, abs(t-j)), j=0..min(n/i, 1))))
end:
a:= n-> b(n$2, 1):
seq(a(n), n=0..80); # Alois P. Heinz, Apr 01 2014
-
b[n_, i_, t_] := b[n, i, t] = If[n > i*(i + 1)/2, 0, If[n == 0, t, Sum[b[n - i*j, i - 1, Abs[t - j]], {j, 0, Min[n/i, 1]}]]]; a[n_] := b[n, n, 1]; Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Jan 16 2015, after Alois P. Heinz *)
a[ n_] := SeriesCoefficient[ (QPochhammer[ -x, x] + QPochhammer[ x]) / 2, {x, 0, n}]; (* Michael Somos, May 06 2015 *)
Table[Length[Select[IntegerPartitions[n],UnsameQ@@#&&EvenQ[Length[#]]&]],{n,0,30}] (* Gus Wiseman, Jan 08 2021 *)
-
{a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( (eta(x^2 + A) / eta(x + A) + eta(x + A)) / 2, n))}; /* Michael Somos, Feb 14 2006 */
-
N=66; q='q+O('q^N); S=1+2*sqrtint(N);
gf=sum(n=0, S, (n%2==0) * q^(n*(n+1)/2) / prod(k=1, n, 1-q^k ) );
Vec(gf) \\ Joerg Arndt, Apr 01 2014
A340932
Numbers whose least prime index is odd. Heinz numbers of integer partitions whose last part is odd.
Original entry on oeis.org
2, 4, 5, 6, 8, 10, 11, 12, 14, 16, 17, 18, 20, 22, 23, 24, 25, 26, 28, 30, 31, 32, 34, 35, 36, 38, 40, 41, 42, 44, 46, 47, 48, 50, 52, 54, 55, 56, 58, 59, 60, 62, 64, 65, 66, 67, 68, 70, 72, 73, 74, 76, 78, 80, 82, 83, 84, 85, 86, 88, 90, 92, 94, 95, 96, 97
Offset: 1
The sequence of terms together with their prime indices begins:
2: {1} 24: {1,1,1,2} 46: {1,9}
4: {1,1} 25: {3,3} 47: {15}
5: {3} 26: {1,6} 48: {1,1,1,1,2}
6: {1,2} 28: {1,1,4} 50: {1,3,3}
8: {1,1,1} 30: {1,2,3} 52: {1,1,6}
10: {1,3} 31: {11} 54: {1,2,2,2}
11: {5} 32: {1,1,1,1,1} 55: {3,5}
12: {1,1,2} 34: {1,7} 56: {1,1,1,4}
14: {1,4} 35: {3,4} 58: {1,10}
16: {1,1,1,1} 36: {1,1,2,2} 59: {17}
17: {7} 38: {1,8} 60: {1,1,2,3}
18: {1,2,2} 40: {1,1,1,3} 62: {1,11}
20: {1,1,3} 41: {13} 64: {1,1,1,1,1,1}
22: {1,5} 42: {1,2,4} 65: {3,6}
23: {9} 44: {1,1,5} 66: {1,2,5}
These partitions are counted by
A026804.
The case where all prime indices are odd is
A066208.
Looking at greatest prime index instead of least gives
A244991.
A061395 selects greatest prime index.
A112798 lists the prime indices of each positive integer.
A372591
Numbers whose binary weight (A000120) plus bigomega (A001222) is even.
Original entry on oeis.org
2, 6, 7, 8, 9, 10, 11, 13, 15, 19, 24, 28, 31, 32, 33, 34, 36, 37, 39, 40, 41, 42, 44, 46, 47, 50, 51, 52, 54, 57, 58, 59, 60, 61, 65, 67, 70, 73, 76, 77, 79, 85, 86, 90, 95, 96, 97, 98, 103, 106, 107, 109, 110, 111, 112, 117, 119, 123, 124, 126, 127, 128, 129
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{2} 2 (1)
{2,3} 6 (2,1)
{1,2,3} 7 (4)
{4} 8 (1,1,1)
{1,4} 9 (2,2)
{2,4} 10 (3,1)
{1,2,4} 11 (5)
{1,3,4} 13 (6)
{1,2,3,4} 15 (3,2)
{1,2,5} 19 (8)
{4,5} 24 (2,1,1,1)
{3,4,5} 28 (4,1,1)
{1,2,3,4,5} 31 (11)
{6} 32 (1,1,1,1,1)
{1,6} 33 (5,2)
{2,6} 34 (7,1)
{3,6} 36 (2,2,1,1)
{1,3,6} 37 (12)
{1,2,3,6} 39 (6,2)
{4,6} 40 (3,1,1,1)
{1,4,6} 41 (13)
{2,4,6} 42 (4,2,1)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
A340933
Numbers whose least prime index is even. Heinz numbers of integer partitions whose last part is even.
Original entry on oeis.org
3, 7, 9, 13, 15, 19, 21, 27, 29, 33, 37, 39, 43, 45, 49, 51, 53, 57, 61, 63, 69, 71, 75, 77, 79, 81, 87, 89, 91, 93, 99, 101, 105, 107, 111, 113, 117, 119, 123, 129, 131, 133, 135, 139, 141, 147, 151, 153, 159, 161, 163, 165, 169, 171, 173, 177, 181, 183
Offset: 1
The sequence of terms together with their prime indices begins:
3: {2} 51: {2,7} 99: {2,2,5}
7: {4} 53: {16} 101: {26}
9: {2,2} 57: {2,8} 105: {2,3,4}
13: {6} 61: {18} 107: {28}
15: {2,3} 63: {2,2,4} 111: {2,12}
19: {8} 69: {2,9} 113: {30}
21: {2,4} 71: {20} 117: {2,2,6}
27: {2,2,2} 75: {2,3,3} 119: {4,7}
29: {10} 77: {4,5} 123: {2,13}
33: {2,5} 79: {22} 129: {2,14}
37: {12} 81: {2,2,2,2} 131: {32}
39: {2,6} 87: {2,10} 133: {4,8}
43: {14} 89: {24} 135: {2,2,2,3}
45: {2,2,3} 91: {4,6} 139: {34}
49: {4,4} 93: {2,11} 141: {2,15}
These partitions are counted by
A026805.
A061395 selects greatest prime index.
A112798 lists the prime indices of each positive integer.
A372588
Numbers k > 1 such that (greatest binary index of k) + (greatest prime index of k) is odd.
Original entry on oeis.org
2, 6, 7, 8, 10, 11, 15, 18, 19, 21, 24, 26, 27, 28, 29, 32, 33, 34, 40, 41, 44, 45, 46, 47, 50, 51, 55, 59, 60, 62, 65, 70, 71, 72, 74, 76, 78, 79, 81, 84, 86, 87, 89, 91, 95, 96, 98, 101, 104, 105, 106, 107, 108, 111, 112, 113, 114, 116, 117, 122, 126, 128
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{2} 2 (1)
{2,3} 6 (2,1)
{1,2,3} 7 (4)
{4} 8 (1,1,1)
{2,4} 10 (3,1)
{1,2,4} 11 (5)
{1,2,3,4} 15 (3,2)
{2,5} 18 (2,2,1)
{1,2,5} 19 (8)
{1,3,5} 21 (4,2)
{4,5} 24 (2,1,1,1)
{2,4,5} 26 (6,1)
{1,2,4,5} 27 (2,2,2)
{3,4,5} 28 (4,1,1)
{1,3,4,5} 29 (10)
{6} 32 (1,1,1,1,1)
{1,6} 33 (5,2)
{2,6} 34 (7,1)
{4,6} 40 (3,1,1,1)
{1,4,6} 41 (13)
{3,4,6} 44 (5,1,1)
{1,3,4,6} 45 (3,2,2)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
Cf.
A000720,
A006141,
A066208,
A160786,
A243055,
A257991,
A300272,
A304818,
A340604,
A341446,
A372429-
A372433,
A372438.
-
Select[Range[2,100],OddQ[IntegerLength[#,2]+PrimePi[FactorInteger[#][[-1,1]]]]&]
A372586
Numbers k such that (sum of binary indices of k) + (sum of prime indices of k) is odd.
Original entry on oeis.org
1, 2, 3, 4, 5, 8, 9, 12, 15, 16, 17, 20, 21, 29, 32, 36, 42, 43, 45, 46, 47, 48, 51, 53, 54, 55, 59, 60, 61, 63, 64, 65, 66, 67, 68, 71, 73, 78, 79, 80, 81, 84, 89, 91, 93, 94, 95, 97, 99, 101, 105, 110, 111, 113, 114, 115, 116, 118, 119, 121, 122, 125, 127
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{1} 1 ()
{2} 2 (1)
{1,2} 3 (2)
{3} 4 (1,1)
{1,3} 5 (3)
{4} 8 (1,1,1)
{1,4} 9 (2,2)
{3,4} 12 (2,1,1)
{1,2,3,4} 15 (3,2)
{5} 16 (1,1,1,1)
{1,5} 17 (7)
{3,5} 20 (3,1,1)
{1,3,5} 21 (4,2)
{1,3,4,5} 29 (10)
{6} 32 (1,1,1,1,1)
{3,6} 36 (2,2,1,1)
{2,4,6} 42 (4,2,1)
{1,2,4,6} 43 (14)
{1,3,4,6} 45 (3,2,2)
{2,3,4,6} 46 (9,1)
{1,2,3,4,6} 47 (15)
{5,6} 48 (2,1,1,1,1)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
-
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
bix[n_]:=Join@@Position[Reverse[IntegerDigits[n,2]],1];
Select[Range[100],OddQ[Total[bix[#]]+Total[prix[#]]]&]
A372589
Numbers k > 1 such that (greatest binary index of k) + (greatest prime index of k) is even.
Original entry on oeis.org
3, 4, 5, 9, 12, 13, 14, 16, 17, 20, 22, 23, 25, 30, 31, 35, 36, 37, 38, 39, 42, 43, 48, 49, 52, 53, 54, 56, 57, 58, 61, 63, 64, 66, 67, 68, 69, 73, 75, 77, 80, 82, 83, 85, 88, 90, 92, 93, 94, 97, 99, 100, 102, 103, 109, 110, 115, 118, 119, 120, 121, 123, 124
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{1,2} 3 (2)
{3} 4 (1,1)
{1,3} 5 (3)
{1,4} 9 (2,2)
{3,4} 12 (2,1,1)
{1,3,4} 13 (6)
{2,3,4} 14 (4,1)
{5} 16 (1,1,1,1)
{1,5} 17 (7)
{3,5} 20 (3,1,1)
{2,3,5} 22 (5,1)
{1,2,3,5} 23 (9)
{1,4,5} 25 (3,3)
{2,3,4,5} 30 (3,2,1)
{1,2,3,4,5} 31 (11)
{1,2,6} 35 (4,3)
{3,6} 36 (2,2,1,1)
{1,3,6} 37 (12)
{2,3,6} 38 (8,1)
{1,2,3,6} 39 (6,2)
{2,4,6} 42 (4,2,1)
{1,2,4,6} 43 (14)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
Cf.
A000720,
A006141,
A066207,
A243055,
A257991,
A300272,
A304818,
A340604,
A341446,
A372429-
A372433,
A372438.
-
Select[Range[2,100],EvenQ[IntegerLength[#,2]+PrimePi[FactorInteger[#][[-1,1]]]]&]
A372590
Numbers whose binary weight (A000120) plus bigomega (A001222) is odd.
Original entry on oeis.org
1, 3, 4, 5, 12, 14, 16, 17, 18, 20, 21, 22, 23, 25, 26, 27, 29, 30, 35, 38, 43, 45, 48, 49, 53, 55, 56, 62, 63, 64, 66, 68, 69, 71, 72, 74, 75, 78, 80, 81, 82, 83, 84, 87, 88, 89, 91, 92, 93, 94, 99, 100, 101, 102, 104, 105, 108, 113, 114, 115, 116, 118, 120
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{1} 1 ()
{1,2} 3 (2)
{3} 4 (1,1)
{1,3} 5 (3)
{3,4} 12 (2,1,1)
{2,3,4} 14 (4,1)
{5} 16 (1,1,1,1)
{1,5} 17 (7)
{2,5} 18 (2,2,1)
{3,5} 20 (3,1,1)
{1,3,5} 21 (4,2)
{2,3,5} 22 (5,1)
{1,2,3,5} 23 (9)
{1,4,5} 25 (3,3)
{2,4,5} 26 (6,1)
{1,2,4,5} 27 (2,2,2)
{1,3,4,5} 29 (10)
{2,3,4,5} 30 (3,2,1)
{1,2,6} 35 (4,3)
{2,3,6} 38 (8,1)
{1,2,4,6} 43 (14)
{1,3,4,6} 45 (3,2,2)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
A372587
Numbers k such that (sum of binary indices of k) + (sum of prime indices of k) is even.
Original entry on oeis.org
6, 7, 10, 11, 13, 14, 18, 19, 22, 23, 24, 25, 26, 27, 28, 30, 31, 33, 34, 35, 37, 38, 39, 40, 41, 44, 49, 50, 52, 56, 57, 58, 62, 69, 70, 72, 74, 75, 76, 77, 82, 83, 85, 86, 87, 88, 90, 92, 96, 98, 100, 102, 103, 104, 106, 107, 108, 109, 112, 117, 120, 123
Offset: 1
The terms (center), their binary indices (left), and their weakly decreasing prime indices (right) begin:
{2,3} 6 (2,1)
{1,2,3} 7 (4)
{2,4} 10 (3,1)
{1,2,4} 11 (5)
{1,3,4} 13 (6)
{2,3,4} 14 (4,1)
{2,5} 18 (2,2,1)
{1,2,5} 19 (8)
{2,3,5} 22 (5,1)
{1,2,3,5} 23 (9)
{4,5} 24 (2,1,1,1)
{1,4,5} 25 (3,3)
{2,4,5} 26 (6,1)
{1,2,4,5} 27 (2,2,2)
{3,4,5} 28 (4,1,1)
{2,3,4,5} 30 (3,2,1)
{1,2,3,4,5} 31 (11)
{1,6} 33 (5,2)
{2,6} 34 (7,1)
{1,2,6} 35 (4,3)
{1,3,6} 37 (12)
{2,3,6} 38 (8,1)
For just binary indices:
For just prime indices:
A070939 gives length of binary expansion.
-
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
bix[n_]:=Join@@Position[Reverse[IntegerDigits[n,2]],1];
Select[Range[100],EvenQ[Total[bix[#]]+Total[prix[#]]]&]
Showing 1-10 of 19 results.
Comments