AMC 10 Counting Practice: Repeated Digits Are Easier to Count by Their Complement

Counting every way that digits can repeat creates overlapping cases: one pair, two pairs, three equal digits and four equal digits. An original AMC 10 learning example can avoid that bookkeeping by counting the opposite event. The crucial first decision is whether a zero is allowed in the first position.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-PIN-REPETITION-COMPLEMENT-COUNT-1118 and tell us your school year and question.

Define the objects before counting

Consider four-position PINs whose entries are decimal digits 0 through 9, with leading zero allowed. A PIN such as 0042 is a valid object. There are 10 choices independently at each position, so the full sample space contains 10^4=10000 PINs. We want those with at least one repeated digit, meaning that not all four entries are distinct.

Count the easier complement

For an all-distinct PIN, the first position has 10 choices, the second 9, the third 8 and the fourth 7. Thus 10 times 9 times 8 times 7=5040 PINs have no repeated digit. Every PIN belongs to exactly one of two groups: all distinct or at least one repetition. Subtracting gives 10000-5040=4960 repeated-digit PINs. No probability assumption is needed for this counting result.

See why choosing a repeated pair overcounts

One might choose a pair of positions and require them to match. But a PIN such as 1111 meets that condition for every pair, while 1122 meets it for two different matching pairs. Adding those counts would count some PINs more than once. The complement works because its construction imposes distinctness sequentially, and its subtraction partitions the original set without overlap.

Compare a genuinely different question

If the objects are four-digit positive integers, the first digit cannot be zero. The total then becomes 9000, and the all-distinct count is 9 times 9 times 8 times 7=4536. The repeated-digit count is 4464. The second factor is still 9 because, after choosing a nonzero first digit, zero remains available in the second position. The PIN answer must not be copied into this changed sample space.

Use the example for post-exam practice

After an answer check, rewrite the object definition and forbidden condition in one sentence. Decide whether the complement is simpler and whether each counted object has exactly one construction. These are original exercises, separate from the site's 2026 paper reviews. They develop a counting habit useful for later AIME preparation without implying a qualification score or an official solution to an unpublished question.

Continue reading: AMC 10 to AIME Number Theory: Combine Two Remainders to Find the Last Two Digits.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10-PIN-REPETITION-COMPLEMENT-COUNT-1118. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send AMC10-PIN-REPETITION-COMPLEMENT-COUNT-1118.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service