MathDB
diophantine system in a algebra problem Puerto Rico TST 2020.2

Source:

September 22, 2021
number theorysystems of equationsDigitsDiophantine Equationsdiophantine

Problem Statement

The cost of 10001000 grams of chocolate is xx dollars and the cost of 10001000 grams of potatoes is yy dollars, the numbers xx and yy are positive integers and have not more than 22 digits. Mother said to Maria to buy 200200 grams of chocolate and 10001000 grams of potatoes that cost exactly NN dollars. Maria got confused and bought 10001000 grams of chocolate and 200200 grams of potatoes that cost exactly MM dollars (M>NM >N). It turned out that the numbers MM and NN have no more than two digits and are formed of the same digits but in a different order. Find xx and yy.