Starting with the vertices P1=(0,1), P2=(1,1), P3=(1,0), P4=(0,0) of a square, we construct further points as follows:
- P5 is the midpoint of P1P2.
- P6 is the midpoint of P2P3.
- P7 is the midpoint of P3P4, and so on.
The spiral path approaches a point P∞=(CA,CB) inside the square, where A,B,C are coprime positive integers.
Find A+B+C.