Maths Olympiad Prep

Track / Stage 5 / 147 of 400 #1227 of 2444

Problem 1227

AIME late
Number theory Difficulty 5.3 Prove it Ukrainian Mathematical Olympiad · Ukraine

Find all positive integers aa, 100a999100 \le a \le 999, such that the decimal values of a2a^2 and (3a2)2(3a - 2)^2 have the same three-digits endings.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Відповідь: 251251, 313313, 501501, 563563, 751751, 813813.

Маємо: (3a2)2a2=1000k(3a-2)^2 - a^2 = 1000k.
Тобто, (2a1)(a1)=250k=253k(2a-1)(a-1) = 250k = 2 \cdot 5^3 \cdot k.
Числа 2a12a-1 і a1a-1 взаємно прості, причому перше з них непарне. Отже, друге число парне, і, відповідно, число aa непарне. Звідси випливає, що a1=250a-1=250, або ж 2a1=1252a-1=125. Таким чином, непарне число aa з проміжку 100a999100 \le a \le 999 задовольняє умову задачі тоді й тільки тоді, коли a{251;501;751}a \in \{251; 501; 751\} або 2a1{375;625;875;1125;1375;1625;1875}2a-1 \in \{375; 625; 875; 1125; 1375; 1625; 1875\}.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.