Let $S=\bigoplus_{k\ge 0}S_n$ be a graded ring which is generated over $S_0$ by some homogeneous elements $f_1,\dotsc, f_r$ of degrees $d_1,\dotsc, d_r\ge 1$, respectively. I want to show that there exist some integer $N>0$ such that $\bigoplus_{k\ge 0}S_{kN}$ is generated over $S_0$ by $S_N$. This result is useful in algebraic geometry because it allows one to reduce oneself to the case in which $S$ is generated by $S_1$ over $S_0$. However, I can't see how to solve this problem. It would be necessary and sufficient to find a $N$ which satisfies the following elementary condition:
Let $k$ be a positive integer, $a_1,\dotsc, a_r\ge0$ integers such that $a_1d_1+\cdots+a_rd_r=kN$. Then there exist integers $0\le b_i\le a_i$ such that $b_1d_1+\cdots+b_rd_r=N$.
Supposedly taking $N=rd_1\cdots d_r$ works, but I can't show that.