Ashwin the frog is traveling on the -plane in a series of steps, starting at the origin. At the step, if is odd, then Ashwin jumps one unit to the right. If is even, then Ashwin jumps units up, where is the greatest integer such that divides . If Ashwin begins at the origin, what is the area of the polygon bounded by Ashwin's path, the line , and the -axis?
Solution
Notice that since , the path divides the rectangle bonded by the coordinate axes and the two lines passing through Ashwin's final location parallel to the axes. The answer is therefore half of the product of the coordinates of Ashwin's final coordinates. The -coordinate is the number of odd number steps (which is ). The -coordinate is the number of total powers of 2 in !. The final answer is therefore .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.