2022 AMC 10 B 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 2022 AMC 10 B 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 B skills.

2022 AMC10 B Problem 25

AMC 10 B · 2022 · Question 25
Hard
Number TheoryModular ArithmeticNumber Bases & Representations

25.

Let be a sequence of numbers, where each is either or . For each positive integer , define Suppose (mod ) for all . What is the value of the sum ?

Choose one answer · Attempt 1 of 3

Small Hint

Define such that . Find the relationship between , the next bit , and the next carry .

Choose one answer · Attempt 2 of 3

Small Hint

Define such that . Find the relationship between , the next bit , and the next carry .

Choose one answer · Attempt 3 of 3

Small Hint

Define such that . Find the relationship between , the next bit , and the next carry .

Solution

Iterative Sequence and State Machine Method

We can compute the terms one by one. By defining an integer ‘carry’ for each step, we can show that the process acts like a state machine. Once the carry repeats, the sequence of bits must enter a repeating cycle.

State Machine Recurrence: To find the digits of a number under a multiplicative condition, track the ‘carry’ at each step. Because the next digit and next carry are uniquely determined by the current carry, any repeating carry guarantees a permanent cycle in the digits.

Step 1: Define a state sequence for the remainder

Since is an integer, the condition means leaves a remainder of when divided by . We can define an integer sequence representing the ‘carry’ at each step.

Step 2: Establish the recurrence relation for the bits and states

We know the next partial sum is built by adding the next bit. Substituting this into the modulo definition gives a direct algebraic relationship between the old carry , the new carry , and the next bit .

Step 3: Determine the rules for finding the bit and next state

Since is an even number, the sum must be even. Because is odd, has the same parity as . Thus, must be chosen from so that it matches the parity of . After finding , we calculate the next state .

Step 4: Iterate to find the repeating pattern

First, find the initial state using the empty sum . Then apply the parity and carry rules sequentially. For negative states, we still choose based on whether the state is even or odd.

Step 5: Evaluate the requested sum

Notice that . This means the states and bits repeat in a cycle of length 3 starting from . Looking at the cycle (), the bit is when is a multiple of 3, and otherwise. We can now evaluate the four required terms.

Correct answer: A.
The value of the sum is 6, which corresponds to choice A. We can verify this by checking the actual values of . For example, , and , which correctly leaves a remainder of 1 modulo 16.

Algebraic Structure and Two’s Complement Method

Instead of finding digits sequentially, we can satisfy by algebraically expressing modulo . The relation allows us to use the geometric series formula to find the binary expansion of , which we can negate using binary complement arithmetic.

Two’s Complement: In modular arithmetic, can be evaluated by subtracting from (which flips all the binary bits of ) and then adding 1.

Step 1: Connect the factor 7 to powers of 2

The problem involves multiplication by 7 modulo . Notice that . By substituting this into the algebraic factorization of , we can relate 7 to a geometric series of powers of 2.

Step 2: Solve algebraically for the sequence sum

Consider the arithmetic modulo . Since , we can substitute this into our series identity. Because 7 is odd, it has a unique inverse modulo , allowing us to directly solve for .

Step 3: Apply two’s complement to resolve the negative sign

We need as a sum of positive powers of 2. In binary arithmetic, we can compute this using the identity . The term is a sum of all powers of 2 up to (a string of 1s in binary). Subtracting our series removes exactly the powers of 2 that are multiples of 3, essentially flipping the bits.

Step 4: Add 1 to complete the binary representation

The final step to find is to add 1. Because is a multiple of 3, the sum from the previous step does not include . Adding 1 simply includes as a distinct term without triggering any carry chains. This gives the complete binary expansion.

Step 5: Extract the bits and evaluate the sum

This algebraic formula perfectly determines which bits are . Because it applies for any large integer , it governs the entire sequence. We use the resulting rule to find the requested indices and calculate the final answer.

Correct answer: A.
The value of the sum is 6, matching choice A. As a final check on the algebraic structure, . Multiplying by 7 gives . Since , , confirming that the formula perfectly satisfies the original condition.

Similar Problems in Real Exams

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

2025 AMC 10 B Problem 4

2021 AMC 10 B Problem 13

2025 AMC 10 B Problem 2

2024 AMC 10 B Problem 4

2024 AMC 10 B Problem 7

Adapted Problems to Practice

1 / 10

What Formulas Do You Need for This Problem?

  • Geometric Series Factorization:

is any real number and is a positive integer. Setting creates a natural bridge between and a binary series.

  • Two's Complement in Modular Arithmetic:

is a non-negative integer less than . It converts a negative binary sequence into a standard sum of distinct positive powers of 2. Since , subtracting simply removes the powers of 2 present in (flipping its bits).

Key Takeaway: Remember This Strategy for Next Time

A recurrence sequence where the terms represent digits in a specific base.

Try: Define a 'carry' or state sequence . Compute the next digit and the next state iteratively to find when the state loops.

Why: Because the possible states are limited by the modular operations, the state sequence must eventually repeat, which proves the sequence of digits is periodic.

A congruence of the form where is one less than a power of 2 (e.g., ).

Try: Multiply both sides by a truncated geometric series to turn into , then solve for algebraically.

Why: This replaces step-by-step modular division with a direct formula, revealing the full binary structure at once.

The need to find the binary digits of a negative number modulo .

Try: Use the two's complement identity .

Why: The expression consists entirely of 1s in binary. Subtracting simply removes the powers of 2 that are present in , making the conversion completely straightforward.


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: November 3, 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