I want to find number of the non negative integer solutions of $a+2b+3c = 200$ (answer can contain $a,b,c = 0$)
Example one of the solutions is $a = 100, b = 50, c = 0$
I used stars and bars trick and here i get is
$\dfrac{\dbinom{200+2}{2}}{2 \times 3}$ but it is incorrect
any type of math is welcomed
what I have learnt from stars and bars technique is to find the solutions of $x+y = n , x,y,n > 0$ are positive integers but I am confused with equation of type $ax+by = n$ where $a , b> 1$
Outline:
Step 1: How many solutions are there to $a+2b=n$ where $n$ is a fixed nonnegative integer. Answer: $b$ can be any of $0, 1, 2,..., \left\lfloor \frac{n}{2} \right\rfloor$. So there are $\left\lfloor \frac{n}{2} \right\rfloor + 1$ solutions.
Step 2: $n$ (from step 1) can be anything of the form $200 - 3c$ where $c$ takes on values from $0$ to $66$. [That is the values of $n$ are $200, 197, 194, ...,2$.]
Step 3: For each value of $n$ in step 2 you will get some number of solutions (based on step 1). Add these all together. There may be helpful patterns you can exploit.