Question Number 188196 by cortano12 last updated on 26/Feb/23 | ||
$$\left(\mathrm{1}\right)\mathrm{solve}\:\mathrm{Diopthantine}\:\mathrm{equation} \\ $$$$\:\:\:\:\:\mathrm{754x}+\mathrm{221y}=\mathrm{13} \\ $$$$\left(\mathrm{2}\right)\:\mathrm{find}\:\mathrm{the}\:\mathrm{number}\:\mathrm{abcd}\: \\ $$$$\:\:\:\mathrm{such}\:\mathrm{that}\:\mathrm{4}×\left(\mathrm{abcd}\right)=\mathrm{dcba} \\ $$ | ||
Commented by ARUNG_Brandon_MBU last updated on 26/Feb/23 | ||
#include <iostream> using namespace std; int main(void) { for (int i=1000; i<2500; i++) { for(int j=1001; j<10000;j++) { if (4*i == j) if (i%10 == j/1000) if (i%100/10 == j%1000/100) if (i%1000/100 == j%100/10) if (i/1000 == j%10) cout << "4*" << i <<"=" << j; } } return 0; } // output: 4*2178=8712 | ||
Commented by ARUNG_Brandon_MBU last updated on 26/Feb/23 | ||
$${a}=\mathrm{2},\:{b}=\mathrm{1},\:{c}=\mathrm{7},\:{d}=\mathrm{8} \\ $$ | ||
Answered by ARUNG_Brandon_MBU last updated on 26/Feb/23 | ||
$$\mathrm{754}{x}+\mathrm{221y}=\mathrm{13} \\ $$$$\mathrm{754}=\mathrm{3}\left(\mathrm{221}\right)+\mathrm{91} \\ $$$$\mathrm{221}=\mathrm{2}\left(\mathrm{91}\right)+\mathrm{39} \\ $$$$\mathrm{91}=\mathrm{2}\left(\mathrm{39}\right)+\mathrm{13} \\ $$$$ \\ $$$$\Rightarrow\mathrm{13}=\mathrm{91}−\mathrm{2}\left(\mathrm{39}\right) \\ $$$$\:\:\:\:\:\:\:\:\:\:=\mathrm{91}−\mathrm{2}\left[\mathrm{221}−\mathrm{2}\left(\mathrm{91}\right)\right] \\ $$$$\:\:\:\:\:\:\:\:\:\:=−\mathrm{2}\left(\mathrm{221}\right)+\mathrm{5}\left(\mathrm{91}\right) \\ $$$$\:\:\:\:\:\:\:\:\:\:=−\mathrm{2}\left(\mathrm{221}\right)+\mathrm{5}\left[\mathrm{754}−\mathrm{3}\left(\mathrm{221}\right)\right] \\ $$$$\:\:\:\:\:\:\:\:\:\:=\mathrm{5}\left(\mathrm{754}\right)−\mathrm{17}\left(\mathrm{221}\right) \\ $$$$\Rightarrow\mathrm{754}\left(\mathrm{5}\right)+\mathrm{221}\left(−\mathrm{17}\right)=\mathrm{13} \\ $$$$\Rightarrow{x}=\mathrm{5},\:\mathrm{y}=−\mathrm{17} \\ $$ | ||
Answered by mr W last updated on 26/Feb/23 | ||
$$\left(\mathrm{2}\right) \\ $$$$\mathrm{4}×\left({abcd}\right)=\left({dcba}\right) \\ $$$$\:\:\:\:{abcd} \\ $$$$\underline{×\:\:\:\:\:\:\:\mathrm{4}} \\ $$$$\:\:\:\:{dcba} \\ $$$${a}=\mathrm{1}\:\left({rejected}\right)\:{or}\:\mathrm{2}\:\Rightarrow{a}=\mathrm{2}\:\checkmark \\ $$$$\mathrm{4}×{d}=\mathrm{12}\:\Rightarrow{d}=\mathrm{3}\:\left({rejected}\right) \\ $$$$\mathrm{4}×{d}=\mathrm{32}\:\Rightarrow{d}=\mathrm{8}\:\checkmark \\ $$$$\:\:\:\:\mathrm{2}{bc}\mathrm{8} \\ $$$$\underline{×\:\:\:\:\:\:\mathrm{4}} \\ $$$$\:\:\:\:\mathrm{8}{cb}\mathrm{2} \\ $$$$\left(\mathrm{2000}+\mathrm{100}{b}+\mathrm{10}{c}+\mathrm{8}\right)×\mathrm{4}=\mathrm{8000}+\mathrm{100}{c}+\mathrm{10}{b}+\mathrm{2} \\ $$$$\mathrm{13}{b}+\mathrm{1}=\mathrm{2}{c} \\ $$$$\Rightarrow{b}=\mathrm{1},\:{c}=\mathrm{7} \\ $$$${so}\:{the}\:{number}\:{is}\:\mathrm{2178}\:{with} \\ $$$$\mathrm{2178}×\mathrm{4}=\mathrm{8712} \\ $$ | ||
Answered by manxsol last updated on 27/Feb/23 | ||
$$\begin{array}{|c|c|c|c|c|c|c|c|c|c|}{{d}}&\hline{{c}}&\hline{{b}}&\hline{{a}}&\hline{}&\hline{{a}}&\hline{{b}}&\hline{{c}}&\hline{{d}}\\{\mathrm{4}}&\hline{\mathrm{4}}&\hline{\mathrm{1}}&\hline{\mathrm{2}}&\hline{}&\hline{\mathrm{6}}&\hline{\mathrm{9}}&\hline{\mathrm{4}}&\hline{\mathrm{4}}\\{\mathrm{5}}&\hline{\mathrm{5}}&\hline{\mathrm{1}}&\hline{\mathrm{1}}&\hline{}&\hline{\mathrm{4}}&\hline{\mathrm{7}}&\hline{\mathrm{6}}&\hline{\mathrm{6}}\\{\mathrm{6}}&\hline{\mathrm{6}}&\hline{\mathrm{1}}&\hline{\mathrm{1}}&\hline{}&\hline{\mathrm{4}}&\hline{\mathrm{7}}&\hline{\mathrm{6}}&\hline{\mathrm{6}}\\{\mathrm{7}}&\hline{\mathrm{7}}&\hline{\mathrm{1}}&\hline{\mathrm{1}}&\hline{}&\hline{\mathrm{8}}&\hline{\mathrm{1}}&\hline{\mathrm{7}}&\hline{\mathrm{7}}\\{\mathrm{8}}&\hline{\mathrm{8}}&\hline{\mathrm{2}}&\hline{\mathrm{2}}&\hline{}&\hline{\mathrm{2}}&\hline{\mathrm{5}}&\hline{\mathrm{8}}&\hline{\mathrm{8}}\\{\mathrm{9}}&\hline{\mathrm{9}}&\hline{\mathrm{2}}&\hline{\mathrm{2}}&\hline{}&\hline{\mathrm{2}}&\hline{\mathrm{5}}&\hline{\mathrm{8}}&\hline{\mathrm{8}}\\{\mathrm{9}}&\hline{\mathrm{9}}&\hline{\mathrm{2}}&\hline{\mathrm{3}}&\hline{}&\hline{\mathrm{6}}&\hline{\mathrm{9}}&\hline{\mathrm{9}}&\hline{\mathrm{9}}\\{}&\hline{}&\hline{}&\hline{}&\hline{}&\hline{}&\hline{}&\hline{}&\hline{}\\{\mathrm{8}}&\hline{\mathrm{7}}&\hline{\mathrm{1}}&\hline{\mathrm{2}}&\hline{}&\hline{\mathrm{2}}&\hline{\mathrm{1}}&\hline{\mathrm{7}}&\hline{\mathrm{8}}\\\hline\end{array} \\ $$ | ||