How to find a number of solutions for $x_1+x_2+\ldots+x_n=r$ where $r$ is divisible by 3 and for a given $l$ and $r$ such that $l\leq x_i \leq r$?
Asked
Active
Viewed 35 times
0

N. F. Taussig
- 76,571

Sail Akhil
- 29
- 5
-
1what is this have to do with Taylor expansion? – tortue Jan 20 '19 at 14:02
-
2Letting $y_i=x_i-l$ this becomes a routine Stars and Bars problem. $r$ can be whatever you want...divisibility by $3$ doesn't change the computation. – lulu Jan 20 '19 at 14:10
-
Or maybe using generating functions, similar to this. – rtybase Jan 21 '19 at 12:52