A365378 Number of integer partitions with sum < n whose distinct parts cannot be linearly combined using nonnegative coefficients to obtain n.
0, 0, 0, 1, 1, 4, 2, 9, 5, 13, 10, 28, 7, 45, 25, 51, 32, 101, 31, 148, 50, 166, 106, 291, 47, 374, 176, 450, 179, 721, 121, 963, 285, 1080, 474, 1534, 200, 2140, 712, 2407, 599, 3539, 481, 4546, 1014, 4885
Offset: 0
Examples
The partition (5,2,2) has distinct parts {2,5} and has 11 = 3*2 + 1*5, so is not counted under a(11). The partition (4,2,2) cannot be linearly combined to obtain 9, so is counted under a(9). The partition (4,2,2) has distinct parts {2,4} and has 10 = 5*2 + 0*4, so is not counted under a(10). The a(3) = 1 through a(10) = 10 partitions: (2) (3) (2) (4) (2) (3) (2) (3) (3) (5) (3) (5) (4) (4) (4) (4) (6) (5) (6) (22) (5) (7) (6) (7) (6) (33) (7) (8) (22) (8) (9) (33) (22) (33) (42) (42) (44) (222) (44) (63) (62) (333) (222) (422) (2222)
Crossrefs
Programs
-
Mathematica
combs[n_,y_]:=With[{s=Table[{k,i},{k,y},{i,0,Floor[n/k]}]},Select[Tuples[s],Total[Times@@@#]==n&]]; Table[Length[Select[Join@@IntegerPartitions/@Range[n-1],combs[n,Union[#]]=={}&]],{n,0,10}]
-
Python
from sympy.utilities.iterables import partitions def A365378(n): a = {tuple(sorted(set(p))) for p in partitions(n)} return sum(1 for m in range(1,n) for b in partitions(m) if not any(set(d).issubset(set(b)) for d in a)) # Chai Wah Wu, Sep 13 2023
Extensions
a(21)-a(45) from Chai Wah Wu, Sep 13 2023
Comments