MathCastle
Proof Writing & Problem SolvingSuperchallenge

Proof Writing & Problem Solving · Superchallenge problem

A robot starts at the origin facing east. On its kk-th move (k=1,2,3,…k = 1, 2, 3, \ldots) it walks exactly kk units straight ahead, and after every move it turns 90∘90^\circ, left or right as it chooses. For how many nn with 1≤n≤1001 \le n \le 100 can the robot be back at the origin immediately after its nn-th move?

Practice more like this