Equation of circle is given by, (x−2)2+(y−3)2−1=0 and plane is z=0
Thus equation of required sphere is given by,
(x−2)2+(y−3)2−1+λz=0
Given this sphere passes through (1,1,1)
⇒(1−2)2+(1−3)2−1+λ1=0→λ=−5
Hence, the equation of sphere is,
(x−2)2+(y−3)2−1−λz=0
⇒x2+y2−4x−6y−5z+12=0
⇒k+m+n−p=3