Maths Olympiad Prep

Library / HMMT February /154 of 1302

HMMT February

Algebra Difficulty 4.8 AIME Find the answer

For what single digit nn does 91 divide the 9-digit number 12345n78912345 n 789?

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution 1: 123450789 leaves a remainder of 7 when divided by 91, and 1000 leaves a remainder of 90, or -1, so adding 7 multiples of 1000 will give us a multiple of 91. Solution 2: For those who don't like long division, there is a quicker way. First notice that 91=7⋅1391=7 \cdot 13, and 7⋅11⋅13=10017 \cdot 11 \cdot 13=1001. Observe that 12345n789=123⋅1001000+45n⋅1001−123⋅1001+123−45n+78912345 n 789=123 \cdot 1001000+45 n \cdot 1001-123 \cdot 1001+123-45 n+789. It follows that 91 will divide 12345n78912345 n 789 iff 91 divides 123−45n+789=462−n123-45 n+789=462-n. The number 462 is divisible by 7 and leaves a remainder of 7\mathbf{7} when divided by 13.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.