MathsReadCompetitive mathematics
Pattern recognition · integer answereasy4 min

Alternating jumps

Alternating Sequences

Consider the sequence 4, 7, 13, 16, 22, 25, 31, ... . The changes repeat in the same two-step pattern. Find the 20th term. Count 4 as term 1; for a check, term 4 is 16. Submit one integer.

Learning goal: Identify alternating increments and evaluate a distant term.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

Compare each consecutive pair of terms.

Hint 2

The jumps alternate between two sizes. How much does one complete pair add?

Hint 3

Two consecutive jumps add 9. Start at term 1 and count 19 jumps.

Common mistake to avoid

Using a single constant difference rather than the repeating pair of differences.

How to approach this problem

Group consecutive differences into complete repeating pairs. Count transitions, not terms, and handle a leftover transition separately.

Worked example with different values

Starting at 2 with alternating jumps +1,+4, the sixth term uses five jumps: two pairs add 10 and the leftover adds 1, giving 13.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →