2024 AMC 10 A Problem 25

AMC 10 Post-Exam Webinar

Plan Your Next Step: AMC 10, AMC 12, or AIME.

Tue. Nov.17

AMC 10 Post-Exam Webinar

Plan Your Next Step: AMC 10, AMC 12, or AIME.

Tue. Nov.17

One Page to Learn. One Point to Earn.

In This Page:

To help you master 2024 AMC 10 A Problem 25, this page includes:

  • The original AMC problem to try, plus the correct answer
  • Clear, step-by-step solutions using different methods
  • Key ideas, useful formulas, and takeaways you can apply to similar problems
  • Related problems from past AMC exams, plus new practice problems that build the same skills

Want more practice? Scroll down to download Think Academy’s AMC 10 practice packs and keep building your AMC 10 A skills.

2024 AMC10 A Problem 25

AMC 10 A · 2024 · Question 25
Hard
CombinatoricsCounting PrinciplesPaths, Grids & Recursive Counting

25.

The figure below shows a dotted grid cells wide and cells tall consisting of squares. Carl places -inch toothpicks along some of the sides of the squares to create a closed loop that does not intersect itself. The numbers in the cells indicate the number of sides of that square that are to be covered by toothpicks, and any number of toothpicks are allowed if no number is written. In how many ways can Carl place the toothpicks?

Diagram for the problem

Choose one answer · Attempt 1 of 3

Small Hint

At a middle-row cell, compare its status with the statuses immediately above, below, left, and right. Exactly one of those four comparisons must be different.

Choose one answer · Attempt 2 of 3

Small Hint

At a middle-row cell, compare its status with the statuses immediately above, below, left, and right. Exactly one of those four comparisons must be different.

Choose one answer · Attempt 3 of 3

Small Hint

At a middle-row cell, compare its status with the statuses immediately above, below, left, and right. Exactly one of those four comparisons must be different.

Solution

Inside-Outside Coloring and Run Classification Method

Represent the loop as the boundary between inside and outside cells. The middle-row condition then severely restricts the possible inside-outside pattern in that row, leaving four families that can be counted.

Assign status to a cell inside the loop and status to a cell outside. A shared side is covered precisely when the two cells have different statuses. Cells beyond the rectangular grid are outside and therefore have status .

Step 1: Encode the loop by inside and outside cells

Let the status of the middle cell in column be , and let the statuses of the cells above and below it be and . The imaginary middle-row cells just beyond the left and right ends are outside. Each disagreement across a side means that side is part of the loop.

Step 2: Determine what happens in a constant part of the middle row

Suppose a middle cell has the same status as both horizontal neighbors. Neither vertical side of that cell is on the loop, so exactly one of the cells above and below must have the opposite status. Thus a flat outside column contains exactly one inside cell, while a flat inside column contains the middle cell and exactly one of the top or bottom cells.

Step 3: Determine what happens next to a change

If the middle-row status changes across one side of a cell, that side already supplies the cell’s one loop edge. Its top and bottom neighbors must therefore have the same status as the cell. Consequently, the outside endpoint of a change is an entirely outside column, while the inside endpoint is an entirely inside column. A middle cell cannot have changes on both horizontal sides because that would already give it two covered sides.

Step 4: Classify all possible middle-row patterns

The cells inside a simple loop form one connected region. At a change between an outside run and an inside run, the outside endpoint is an empty column. If there were another outside column farther along that run, it would contain an inside top or bottom cell and would be separated from the main inside region by the empty column. That is impossible. Therefore an outside prefix or suffix can have length at most one. An internal outside run cannot occur: it cannot have length one because that middle cell would have two horizontal changes, and a longer run would disconnect the inside cells. Hence either every middle cell is outside, or there is one inside run with at most one outside cell at each end.

Step 5: Count the all-outside middle row

Each column must contain one inside cell, either in the top row or the bottom row. For all inside cells to be connected, every choice must use the same row. These give the loops surrounding the entire top row or the entire bottom row.

Step 6: Count the all-inside middle row

The first and last columns are next to the outside of the board, so each is forced to be entirely inside. In each of the six remaining columns, either the top cell or the bottom cell joins the middle cell. These choices are independent.

Step 7: Count a single outside end

For a pattern with one outside cell at an end, that end column is entirely outside. The neighboring inside column and the inside column at the other boundary are entirely inside. The five inside columns between them each have two choices. The left-end and right-end cases are symmetric.

Step 8: Count outside cells at both ends

Both end columns are entirely outside, and their neighboring inside columns are entirely inside. Each of the four remaining middle columns has two choices for whether its top or bottom cell is included.

Step 9: Verify that every counted assignment gives one legal loop

In every counted pattern, the inside cells are connected: either they form one complete outer row, or they are joined by the consecutive inside middle cells. Every outside top or bottom cell touches the exterior through the corresponding outer edge, so no enclosed hole is created. The permitted column types also avoid a diagonal checkerboard meeting at a vertex, so the boundary does not cross or touch itself. Thus each assignment produces exactly one legal simple closed loop.

Correct answer: C.
The number of toothpick arrangements is , corresponding to choice . As a check, the five classified middle-row patterns do not overlap, and their counts total . Every legal pattern is included because any additional outside run would either give a numbered cell two covered sides or disconnect the region inside the loop.

Similar Problems in Real Exams

The following five AMC 10 A problems are closely related to AMC 10 A 2024 Question 25. These real AMC 10 A problems test the same key concept—Counting Principles. Click any problem to learn and practice, then continue to the adapted practice section later in this article for more problems to try.

2020 AMC 10 A Problem 19

2025 AMC 10 A Problem 12

2025 AMC 10 A Problem 24

2024 AMC 10 A Problem 9

2023 AMC 10 A Problem 6

Adapted Problems to Practice

1 / 10

What Formulas Do You Need for This Problem?

  • Inside-outside boundary encoding:

A grid edge is part of the loop exactly when the cells on its two sides have different inside-outside statuses.

Use status for an inside cell and for an outside cell. A cell beyond the grid is outside. This applies because the toothpicks form a simple closed loop along grid edges. A simple closed loop separates the plane into an inside and an outside, and its edges are precisely the boundaries between those two regions.

  • One-boundary-side condition:

is the status of middle cell , while and are the statuses above and below it. The notation equals when statement is true and otherwise. Each disagreement corresponds to one covered side of the numbered cell, and every numbered cell requires exactly one covered side.

  • Multiplication principle:
If independent positions each have two choices, then they produce assignments.

The choices must be independent, and every resulting assignment must satisfy the required conditions. Once the forced columns are fixed, each remaining inside middle-row column independently chooses whether its top or bottom cell is outside.

  • Addition principle for disjoint cases:

If valid objects are divided into non-overlapping, complete cases, the total is the sum of the case counts.

The cases must not overlap and must include every legal arrangement. The five middle-row status patterns are distinct, and the connectivity argument proves that no other pattern is possible.

  • Connectivity requirement for a simple loop:

The cells inside one simple closed loop must form one connected region and cannot be split into separate groups by an entirely outside column.

The loop is required to be a single non-self-intersecting closed curve. Separate inside groups would require separate boundary components or a disconnected interior, rather than one simple loop.

Key Takeaway: Remember This Strategy for Next Time

A grid problem describes one simple closed loop and gives the number of loop edges around cells.

Try: Color cells as inside or outside and translate covered edges into disagreements between neighboring statuses.

Why: The loop is exactly the boundary separating inside cells from outside cells.

A local condition creates an entirely empty or entirely full column at every status change.

Try: Use connectivity to rule out long or internal runs that would separate the inside region.

Why: A single simple loop must enclose one connected region.

After structural restrictions are found, several columns still have independent top-or-bottom choices.

Try: Count those choices with powers of two, then add the non-overlapping pattern cases.

Why: Each free column contributes two choices, while the classified cases cover all legal arrangements exactly once.


Unlock More Targeted AMC 10 Practice Resource

Build Stronger Skills. Practice with Purpose. Prepare with Confidence.

Get a complete set of module-focused AMC 10 practice workbooks designed to help students strengthen core concepts, improve problem-solving strategies, and feel more confident on test day.

With 250+ practice problems organized across six essential AMC 10 modules, students can focus on one skill area at a time and learn from clear, step-by-step solutions.

AMC10 Practice Resource Pack

Download the Free AMC 10 Practice Resource Pack

Inside, You’ll Find:

  • 6 module-focused practice workbooks: Algebra, Geometry, Number Theory, Combinatorics, and Probability & Statistics.
  • 250+ AMC 10-style practice problems covering essential concepts and common competition question types.
  • Complete answer keys and step-by-step solutions to help students understand the reasoning behind each answer.
  • Organized, print-ready materials for independent study, guided practice, or extra preparation at home.

Get Instant Access: Fill out the form below to receive our exclusive resource pack.

*Please enter a valid email address to access the materials and receive future prep updates.

 AMC 10 Practice Resource Pack
Free Download

After submission, the download link is in the confirmation message on this page.


About Think Academy

Think Academy US Online, part of TAL Education Group (NYSE: TAL), provides structured math and ELA programs that help students build strong academic foundations and grow with confidence. With expert teachers, proven methods, and innovative AI tools, we nurture learning ability, curiosity, and healthy study habits that support long-term growth and a lifelong love of learning.

Check our programs:

Want more insights on Math & ELA learning and parenting? Fill out the form on this page and subscribe to our newsletter for weekly tips and the latest resources. Join 100,000+ families in our Parent Community!

Leave a Comment & Share Your Thoughts!

Published On: October 29, 2026
Post Content
Think Academy 2026 AMC 10 Post-Exam Planning Webinar (1)

Get expert PreK–12 insights in your inbox every week

To support your child’s learning, confidence, and growth:
✓ Competition & Test Prep
✓ Printable Worksheets
✓ Webinar Invites

Join 100,000+ subscribers in our parent community.

Share This Story, Choose Your Platform!

Related Posts