A364906 Number of ways to write A056239(n) as a nonnegative linear combination of the multiset of prime indices of n.
1, 1, 1, 3, 1, 2, 1, 10, 3, 2, 1, 9, 1, 2, 1, 35, 1, 6, 1, 9, 2, 2, 1, 34, 3, 2, 10, 10, 1, 7, 1, 126, 1, 2, 1, 30, 1, 2, 2, 39, 1, 6, 1, 11, 3, 2, 1, 130, 3, 6, 1, 12, 1, 20, 1, 46, 2, 2, 1, 31, 1, 2, 9, 462, 2, 7, 1, 13, 1, 6, 1, 120, 1, 2, 4, 14, 1, 7, 1
Offset: 1
Keywords
Examples
The a(2) = 1 through a(10) = 2 ways: 1*1 1*2 0*1+2*1 1*3 1*1+1*2 1*4 0*1+0*1+3*1 0*2+2*2 1*1+1*3 1*1+1*1 3*1+0*2 0*1+1*1+2*1 1*2+1*2 4*1+0*3 2*1+0*1 0*1+2*1+1*1 2*2+0*2 0*1+3*1+0*1 1*1+0*1+2*1 1*1+1*1+1*1 1*1+2*1+0*1 2*1+0*1+1*1 2*1+1*1+0*1 3*1+0*1+0*1
Crossrefs
Programs
-
Mathematica
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; combs[n_,y_]:=With[{s=Table[{k,i},{k,y},{i,0,Floor[n/k]}]},Select[Tuples[s],Total[Times@@@#]==n&]]; Table[Length[combs[Total[prix[n]],prix[n]]],{n,100}]
Comments