DR.WANG Mathematics中文

2024 AMC 8 · Question 1

Number theory · units digit · modular arithmetic

Problem outline

Start with the six-digit integer made entirely of twos. Subtract each of the five shorter positive integers made entirely of twos, using each length once. Determine the final units digit.

Show answer and methods 2 methods

Answer

B. 22.

Method 1 Keep only the residue

Every number in the subtraction is congruent to 2(mod10)2\pmod{10}. Replacing the six entries by their residues gives 2−5(2)=−82-5(2)=-8.

Add 1010 to put the residue in the range 00 through 99. Since −8≡2(mod10)-8\equiv 2\pmod{10}, the required digit is 22.

Method 2 Cancel the matching tail

The first subtraction cancels five matching digits: 222222−22222=200000222222-22222=200000.

The four quantities still to subtract have sum 2222+222+22+2=24682222+222+22+2=2468. The final number is 197532197532, whose last digit is 22.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)