A367215
Number of strict integer partitions of n whose length (number of parts) is not equal to the sum of any subset.
Original entry on oeis.org
0, 0, 1, 1, 2, 2, 2, 3, 3, 4, 5, 7, 8, 10, 12, 15, 18, 21, 25, 29, 34, 40, 46, 53, 62, 71, 82, 95, 109, 124, 143, 162, 185, 210, 240, 270, 308, 347, 393, 443, 500, 562, 634, 711, 798, 895, 1002, 1120, 1252, 1397, 1558, 1735, 1930, 2146, 2383, 2644, 2930, 3245
Offset: 0
The a(2) = 1 through a(11) = 7 strict partitions:
(2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
(3,1) (4,1) (5,1) (4,3) (5,3) (5,4) (6,4) (6,5)
(6,1) (7,1) (6,3) (7,3) (7,4)
(8,1) (9,1) (8,3)
(5,4,1) (10,1)
(5,4,2)
(6,4,1)
The a(2) = 1 through a(15) = 15 strict partitions (A..F = 10..15):
2 3 4 5 6 7 8 9 A B C D E F
31 41 51 43 53 54 64 65 75 76 86 87
61 71 63 73 74 84 85 95 96
81 91 83 93 94 A4 A5
541 A1 B1 A3 B3 B4
542 642 C1 D1 C3
641 651 652 752 E1
741 742 761 654
751 842 762
841 851 852
941 861
6521 942
951
A41
7521
The following sequences count and rank integer partitions and finite sets according to whether their length is a subset-sum or linear combination of the parts. The current sequence is starred.
sum-full sum-free comb-full comb-free
-------------------------------------------
A124506 appears to count combination-free subsets, differences of
A326083.
A240861 counts strict partitions with length not a part, complement
A240855.
Triangles:
A365661 counts strict partitions with a subset-sum k, non-strict
A365543.
A365663 counts strict partitions without a subset-sum k, non-strict
A046663.
-
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&FreeQ[Total/@Subsets[#], Length[#]]&]], {n,0,30}]
A367217
Number of subsets of {1..n} whose cardinality is not equal to the sum of any subset.
Original entry on oeis.org
0, 0, 1, 3, 6, 12, 24, 46, 87, 164, 308, 577, 1080, 2021, 3779, 7058, 13166, 24533, 45674, 84978, 158026, 293737, 545747, 1013467, 1881032, 3489303, 6468910, 11985988, 22195905, 41080751, 75994642, 140514019, 259693004, 479749492, 885910870, 1635281386
Offset: 0
The a(2) = 1 through a(5) = 12 subsets:
{2} {2} {2} {2}
{3} {3} {3}
{1,3} {4} {4}
{1,3} {5}
{1,4} {1,3}
{3,4} {1,4}
{1,5}
{3,4}
{3,5}
{4,5}
{1,4,5}
{2,4,5}
The following sequences count and rank integer partitions and finite sets according to whether their length is a subset-sum or linear combination of the parts. The current sequence is starred.
sum-full sum-free comb-full comb-free
-------------------------------------------
A000009 counts subsets summing to n.
A000124 counts distinct possible sums of subsets of {1..n}.
A229816 counts partitions whose length is not a part, complement
A002865.
A124506 appears to count combination-free subsets, differences of
A326083.
Triangles:
A046663 counts partitions of n without a subset-sum k, strict
A365663.
A365541 counts sets containing two distinct elements summing to k.
Cf.
A068911,
A103580,
A240861,
A288728,
A326080,
A326083,
A364346,
A364349,
A365046,
A365376,
A365377.
-
Table[Length[Select[Subsets[Range[n]], FreeQ[Total/@Subsets[#], Length[#]]&]], {n,0,15}]
A364461
Positive integers such that if prime(a)*prime(b) is a divisor, prime(a+b) is not.
Original entry on oeis.org
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 64, 65, 66, 67, 68, 69, 71, 73, 74, 75, 76
Offset: 1
The prime indices of 198 are {1,2,2,5}, which is sum-free even though it is not knapsack (A299702, A299729), so 198 is in the sequence.
Subsets of this type are counted by
A085489, with re-usable parts
A007865.
Subsets not of this type are counted by
A093971, w/ re-usable parts
A088809.
Partitions of this type are counted by
A236912.
The complement allowing parts to be re-used is
A364348, counted by
A363225.
The non-binary version allowing re-used parts is counted by
A364350.
-
prix[n_]:=If[n==1,{}, Flatten[Cases[FactorInteger[n], {p_,k_}:>Table[PrimePi[p],{k}]]]];
Select[Range[100],Intersection[prix[#], Total/@Subsets[prix[#],{2}]]=={}&]
A364462
Positive integers having a divisor of the form prime(a)*prime(b) such that prime(a+b) is also a divisor.
Original entry on oeis.org
12, 24, 30, 36, 48, 60, 63, 70, 72, 84, 90, 96, 108, 120, 126, 132, 140, 144, 150, 154, 156, 165, 168, 180, 189, 192, 204, 210, 216, 228, 240, 252, 264, 270, 273, 276, 280, 286, 288, 300, 308, 312, 315, 324, 325, 330, 336, 348, 350, 360, 372, 378, 384, 390
Offset: 1
The terms together with their prime indices begin:
12: {1,1,2}
24: {1,1,1,2}
30: {1,2,3}
36: {1,1,2,2}
48: {1,1,1,1,2}
60: {1,1,2,3}
63: {2,2,4}
70: {1,3,4}
72: {1,1,1,2,2}
84: {1,1,2,4}
90: {1,2,2,3}
96: {1,1,1,1,1,2}
108: {1,1,2,2,2}
120: {1,1,1,2,3}
126: {1,2,2,4}
132: {1,1,2,5}
140: {1,1,3,4}
144: {1,1,1,1,2,2}
Subsets not of this type are counted by
A085489, w/ re-usable parts
A007865.
Subsets of this type are counted by
A088809, with re-usable parts
A093971.
Partitions not of this type are counted by
A236912.
Partitions of this type are counted by
A237113.
-
filter:= proc(n) local F, i,j,m;
F:= map(t -> `if`(t[2]>=2, numtheory:-pi(t[1])$2, numtheory:-pi(t[1])), ifactors(n)[2]);
for i from 1 to nops(F)-1 do for j from 1 to i-1 do
if member(F[i]+F[j],F) then return true fi
od od;
false
end proc:
select(filter, [$1..1000]); # Robert Israel, Aug 30 2023
-
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Select[Range[100],Intersection[prix[#], Total/@Subsets[prix[#],{2}]]!={}&]
A364532
Positive integers with a prime index equal to the sum of prime indices of some nonprime divisor. Heinz numbers of a variation of sum-full partitions.
Original entry on oeis.org
12, 24, 30, 36, 40, 48, 60, 63, 70, 72, 80, 84, 90, 96, 108, 112, 120, 126, 132, 140, 144, 150, 154, 156, 160, 165, 168, 180, 189, 192, 198, 200, 204, 210, 216, 220, 224, 228, 240, 252, 264, 270, 273, 276, 280, 286, 288, 300, 308, 312, 315, 320, 324, 325, 330
Offset: 1
The terms together with their prime indices begin:
12: {1,1,2}
24: {1,1,1,2}
30: {1,2,3}
36: {1,1,2,2}
40: {1,1,1,3}
48: {1,1,1,1,2}
60: {1,1,2,3}
63: {2,2,4}
70: {1,3,4}
72: {1,1,1,2,2}
80: {1,1,1,1,3}
84: {1,1,2,4}
90: {1,2,2,3}
96: {1,1,1,1,1,2}
A299701 counts distinct subset-sums of prime indices.
-
Select[Range[100],Intersection[prix[#],Total/@Subsets[prix[#],{2,Length[prix[#]]}]]!={}&]
A367107
Numbers m not divisible by prime(bigomega(m)). Heinz numbers of integer partitions whose length is not a part (counted by A229816).
Original entry on oeis.org
3, 4, 5, 7, 8, 10, 11, 12, 13, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 46, 47, 48, 49, 52, 53, 54, 55, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 85
Offset: 1
Partitions of this type are counted by
A229816.
Comments