# Why is this 24 on AMC 10?

**Algebra**Level pending

Aaron the ant walks on the coordinate plane according to the following rules. He starts at the origin p*0 = (0,0) facing to the east and walks one unit, arriving at p*1=(1,0). For n=1,2,3,... right after arriving at the point p*n, if Aaron can turn 90 degrees left and walk one unit to an unvisited point p*{n+1}, he does that. Otherwise, he walks one unit straight ahead to reach p*{n+1}. Thus the sequence of points continues p*2=(1,1), p*3=(0,1), p*4=(-1,1), p*5=(-1,0) and so on in a counterclockwise spiral pattern. p*{2015}'s coordinates can be expressed as (a,b). Find the absolute value of 3a-b. Source: AMC 10