I have this statement:
In how many ways, you can pay $12,000$ dollars, with bills of $10,000$ , $5,000$ and $1,000$ dollars?
I can do combinatorics like:
$1)$ 1 bill of $10,000$ and two of $1,000$
$2)$ 2 bills of $5,000$ and two of $1,000$
Well, but i read a other solution that says:
Get all natural solutions of:
$12 = 10a + 5b + c$
then, $a$, $b$ and $c$ can be $\{0, 1, 2, 3..\}$ $\rightarrow \mathbb{N}$, example:
$12 = 10*1 + 5*0 + c*2$, with $a=1$, $b = 0$ and $c = 2$
But how can I find all naturals solutions? Like determinant in quadratic equations.