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

AMC 10 to AIME Counting: Two Forbidden Points Need an Overlap Correction

When a path must avoid two points, subtracting paths through each point can remove some paths twice. An original grid example makes the overlap visible and provides a clean setting for practising a complete integer count before later AIME-style extensions.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-TWO-FORBIDDEN-1117 and tell us your school year and question.

Define the grid and allowed moves

Move from (0,0) to (4,4), taking only one-unit right or up steps. There are four of each type, so the total number of monotone paths is 8 choose 4 = 70. Let the forbidden points be A = (1,2) and B = (3,2). Paths must visit neither point; crossing a horizontal or vertical line elsewhere is not forbidden.

Count paths through each point

To reach A requires one right and two up moves, giving 3 choose 1 = 3 paths. From A to the destination requires three right and two up moves, giving 5 choose 3 = 10. Thus 30 paths visit A. Similarly, reaching B gives 5 choose 3 = 10 possibilities, and leaving B gives 3 choose 1 = 3, so 30 paths visit B.

Find the paths counted in both groups

A monotone path visiting both points must encounter A before B because their horizontal coordinates increase and their vertical coordinates are equal. Between them it takes two right steps and no up steps, which is one possibility. The full count through both is therefore 3 times 1 times 3 = 9. There is no additional reverse-order group to add.

Apply the correction with the correct sign

The forbidden union has size 30 + 30 - 9 = 51. Subtracting it from all paths gives 70 - 30 - 30 + 9 = 19 allowed paths. The nine-path term is added back because those paths were removed twice in the two separate subtractions. Adding it does not permit them into the final allowed set; it restores their removal to exactly once.

Verify through a grid recurrence

As an independent check, assign value one at the origin, zero at the two forbidden points, and at every other grid point add the values immediately below and left when available. The destination receives 19. The recurrence counts actual allowed continuations, whereas inclusion and exclusion counts complements. Agreement is a useful check, but both methods still depend on preserving the same move restrictions and forbidden-point definitions.

Continue reading: AMC 10 to AIME Geometry: Count Interior Grid Points Without Including the Boundary.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send AMC10-TWO-FORBIDDEN-1117.

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