Solving equations in geometric progressions