A254430 Number of "feasible" partitions with n parts.
1, 3, 16, 183, 4804, 299558, 45834625, 17696744699, 17644374475261, 46279884666882734, 324101360547203133793
Offset: 1
Keywords
Examples
For n=2, we count 2nd through 4th values of A254296. So a(2)=1+1+1=3. For n=3, we count 5th through 13th values from A254296. So a(3)= 2+2+3+2+2+2+1+1+1 = 16. For n=4, a(4)= Sum of 14th through 40th terms of A254296, that is, 183.
Links
- Md Towhidul Islam & Md Shahidul Islam, Number of Partitions of an n-kilogram Stone into Minimum Number of Weights to Weigh All Integral Weights from 1 to n kg(s) on a Two-pan Balance, arXiv:1502.07730 [math.CO], 2015.
Crossrefs
Programs
-
Mathematica
okQ[v_] := Module[{s = 0}, For[i = 1, i <= Length[v], i++, If[v[[i]] > 2s + 1, Return[False], s += v[[i]]]]; Return[True]]; a254296[n_] := With[{k = Ceiling[Log[3, 2n]]}, Select[Reverse /@ IntegerPartitions[n, {k}], okQ] // Length]; a[n_] := Sum[a254296[p], {p, (3^(n-1) + 1)/2, (3^n - 1)/2}]; Array[a, 5] (* Jean-François Alcover, Nov 04 2018, after Charles R Greathouse IV in A254296 *)
Formula
a(n) = Sum_{p=(3^(n-1)+1)/2..(3^n-1)/2} A254296(p).
Extensions
a(9)-a(11) from Md. Towhidul Islam, Apr 18 2015
Comments