5x + 19y = 100
given the constraint that the two variables belong to N
I get the answer:
x = 400 y = (-100)
I dont know if this is the right asnwer to the question
5x + 19y = 100
given the constraint that the two variables belong to N
I get the answer:
x = 400 y = (-100)
I dont know if this is the right asnwer to the question
Since $5x$ and $100$ are divisible by $5$, so must $19y$. Since $19$ is not divisible by $5$, then $y$ must be. So $y = 5, 10, 15 \ldots$.
Now $5x= 100 - 19y$ has to be positive, so $100 > 19 y$, so $y < 100/19 < 6$. There for the only possibility is $y=5.$
Note first that we must have $5\,|\,y$, so write $y=5Y$. Then we can divide by $5$ to obtain $$x+19Y=20$$
Thus the integer solutions (without attention to signs) are the pairs $(x, 5Y)$ with $x=20-19Y$.
For instance, taking $Y=1$ we get $x=20-19\times 1=1$ hence the solution $(1,5)$.
Taking $Y=2$ we get $x=20-19\times 2=-18$ hence the solution $(-18,10)$.
And so on.
If you require both $x,Y$ to be positive we see that the only solution is $(1,5)$, since $Y>1\implies x= 20-19Y<0$.
To be clear: the question asked about "natural numbers". Some people define natural numbers as integers $≥0$, others define it as integers $≥1$. If you allow $0$ to be a natural number then you must also consider the solution with $Y=0$, hence $(20,0)$.
5 divides into 19 3 times with remainder 4: 19- 3(5)= 4
4 divides into 5 once with remainder 1: 5- 4= 1
So 5- (19- 3(5))= 4(5)- 1(19)= 1
Multiply by 100: 5(400)- 19(100)= 100.
One solution to 5x + 19y = 100 is x= 400, y= -100.
But x= 400- 19n, y= -100+ 5n is also a solution for any n: 5(400- 19n)+ 19(-100+ 5n)= 5(400)- 19(100)- 95n+ 95n= 100.
y will be positive for any n greater than 20. In particular, for n= 21, y= -100+ 105= 5. If n= 21, x= 400- 19(21)= 400- 399= 1.
The only solution with both x and y positive is x= 1, y= 5.
In general for the equation $ax+by=c$ if you have a particular solution $(x_0,y_0)$ then you can do $$ax+by=c\\ax_0+by_0=c$$ so you get $$a(x-x_0)+b(y-y_0)=0$$ from which making $x-x_0=bt$ and $y-y_0=-at$ you get the identity $abt-abt=0$ from which all the solutions (there are infinitely many) $$x=x_0+bt\\y=y_0-at$$ where $t$ is a parameter taking all integer value. You can discriminate if you want to have only natural numbers (which obviously are in finite number of them).