0

How do I find the number of solutions in the equation $$a_1 + a_2 + a_3 +\dots+a_k=2021$$ in terms of $k$ with $1\leq a_1, a_2, \dots, a_k\leq9$? I know the first step is to introduce a new variable, say $b_i + 1 = a_i$ for $i=1,2,\dots,k$ so that it turns into $$b_1+b_2+b_3+\dots b_k=2021-k$$ with $0\leq b_1, b_2,\dots, b_k\leq8$, but how do I continue?

ryan.zcd
  • 403

0 Answers0