Being straight about the question, for a program I'm writing, I need to divide 100% into 5 parts. In my program, percentages incremented/decremented by 10%. So I can express my requirement in the following format.
$x + y + z + a + b = 10$
where, $ x, y, z, a, b \in \mathbb{Z}^{0+}$
Is there any way to get all possible values for x, y, z, a, b? I thought of derivatives but it did not work. If we can find one pattern which we can fill the 5 spaces so the sum is 10, we can take all permutations of that pattern so if there's a way to get all patterns, then I guess the problem can be solved.
Other than that, I have no idea to solve this. Any help is appreciated.