We know that:

is an equation of a circle.
When we substitute x and y (from the pairs we have), we'll get a system of equations:

and all we have to do is solve it for a, b and r.
There will be:

From equations (II) and (III) we have:

and from (I) and (II):

Now we can easly calculate a and b:

Finally we calculate

:

And the equation of the circle is:
