A triangle △A0A1A2 in the plane has sidelengths A0A1=7,A1A2=8,A2A0=9. For i≥0, given △AiAi+1Ai+2, let Ai+3 be the midpoint of AiAi+1 and let Gi be the centroid of △AiAi+1Ai+2. Let point G be the limit of the sequence of points {Gi}i=0∞. If the distance between G and G0 can be written as cab , where a,b,c are positive integers such that a and c are relatively prime and b is not divisible by the square of any prime, find a2+b2+c2.