I need to find all pairs of three-digit integers $(m,n)$ with $m,n \in N $that fit the following conditions:
a) $m-n=889$
b) For the digit sum $Q(m)$ and $Q(n)$ let: $Q(m)-Q(n)=25$
My ideas:
I tried figuring out all pairs but I am not quite sure if I am on the right track:
We can write three-digit integers just like this:
$m=a_1 \cdot100+b_1 \cdot 10+c_1 $
$n=a_2 \cdot100+b_2 \cdot 10+c_2 $
We can just plug this in condition a) : $100(a_1-a_2)+10(b_1-b_2)+(c_1-c_2)=889$
And with b) we get another equation:
since $Q(m)=a_1+b_1+c_1$ and $Q(n)=a_2+b_2+c_2$
we have: $(a_1-a_2)+(b_1-b_2)+(c_1-c_2)=25 $
To sum up we have the following equations:
1.) $100(a_1-a_2)+10(b_1-b_2)+(c_1-c_2)=889$
2.) $(a_1-a_2)+(b_1-b_2)+(c_1-c_2)=25 $
At this point I am stuck because these are two equations for 6 unknowns and the solutions have to be integers. Is this even the right way?
I am very thankful for any kind of help! :)