A Spiral of Numbers

Problem

Arrange 1,2,…,n21, 2, \dots, n^2 clockwise in a spiral to fill an n×nn \times n table TnT_n, first row 1,2,…,n1, 2, \dots, n; for example

T3=[123894765].T_3 = \begin{bmatrix} 1&2&3 \\ 8&9&4 \\ 7&6&5 \end{bmatrix}.

In T100T_{100}, the number 20182018 sits in row ii, column jj. Find (i,j)(i, j).

Answer

Solution

Difficulty7/10
Topicscombinatorics, Arithmetic Progression, Counting

Whiteboard

Your sketch is saved only in this browser. To share it, export your drawing as an image (whiteboard menu → Export as → PNG), then upload that image in the comments below.

Discussion

Ask questions, share alternate solutions, and use LaTeX freely.

0 comments
Log in to join the discussion.

No comments yet.