Express b and c through a and q, write the equation saying that the difference between the third and first terms of arithmetic progression is twice the difference between the second and first terms, simplify and solve for q. Don't forget special cases a = 0 and q = 1.