MathsReadCompetitive mathematics
Pattern recognition · integer answerhard14 min

Count odd positions in the spiral

Figurate Numbers

The first row of an array has 1 number, the second row has 3, the third row has 5, and so on. Fill the rows consecutively starting from 1. What is the last number written in row 35? Submit one integer.

Learning goal: Sum consecutive odd row lengths.

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

Through row n the total count is a square.

Hint 2

The last position in row n is 1+3+...+(2n-1).

Hint 3

That equals n squared.

Common mistake to avoid

Assuming the first visible step stays constant without testing the full pattern.

How to approach this problem

The last value in a row is the total of all row lengths through that row. These lengths form the positive odd integers.

Worked example with different values

After six rows the last number is 1+3+5+7+9+11=36.

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 →