We start with the given family of circles
x 2 + y 2 + p x + ( 1 − p ) y + 5 = 0. x^{2}+y^{2}+px+(1-p)y+5=0. x 2 + y 2 + p x + ( 1 − p ) y + 5 = 0.
The standard form of the general circle is
x 2 + y 2 + 2 g x + 2 f y + c = 0 , x^{2}+y^{2}+2gx+2fy+c=0, x 2 + y 2 + 2 g x + 2 f y + c = 0 ,
whose centre is ( − g , − f ) (-g,\,-f) ( − g , − f ) and whose radius is R = g 2 + f 2 − c . R=\sqrt{g^{2}+f^{2}-c}\,. R = g 2 + f 2 − c .
Comparing coefficients we obtain
2 g = p ⟹ g = p 2 , 2g=p \;\;\Longrightarrow\;\; g=\dfrac{p}{2}, 2 g = p ⟹ g = 2 p ,
2 f = 1 − p ⟹ f = 1 − p 2 , 2f=1-p \;\;\Longrightarrow\;\; f=\dfrac{1-p}{2}, 2 f = 1 − p ⟹ f = 2 1 − p ,
and
c = 5. c=5. c = 5.
Substituting g , f , c g,\;f,\;c g , f , c in the radius formula gives
R = ( p 2 ) 2 + ( 1 − p 2 ) 2 − 5 = p 2 4 + 1 − 2 p + p 2 4 − 5 . R=\sqrt{\left(\dfrac{p}{2}\right)^{2}+\left(\dfrac{1-p}{2}\right)^{2}-5}
=\sqrt{\dfrac{p^{2}}{4}+\dfrac{1-2p+p^{2}}{4}-5}. R = ( 2 p ) 2 + ( 2 1 − p ) 2 − 5 = 4 p 2 + 4 1 − 2 p + p 2 − 5 .
Simplifying the expression under the square root, we have
R = 2 p 2 − 2 p − 19 4 = 1 2 2 p 2 − 2 p − 19 . R=\sqrt{\dfrac{2p^{2}-2p-19}{4}}
=\dfrac{1}{2}\sqrt{\,2p^{2}-2p-19\,}. R = 4 2 p 2 − 2 p − 19 = 2 1 2 p 2 − 2 p − 19 .
The problem states that the radius varies in the interval ( 0 , 5 ] , (0,\,5], ( 0 , 5 ] , therefore
0 < R ≤ 5 ⟹ 0 < 1 2 2 p 2 − 2 p − 19 ≤ 5. 0\lt R\le 5
\;\;\Longrightarrow\;\;
0\lt \dfrac{1}{2}\sqrt{\,2p^{2}-2p-19\,}\le 5. 0 < R ≤ 5 ⟹ 0 < 2 1 2 p 2 − 2 p − 19 ≤ 5.
Squaring and multiplying by 4 4 4 eliminates the square root and the denominator:
0 < 2 p 2 − 2 p − 19 ≤ 100. 0\lt 2p^{2}-2p-19\le 100. 0 < 2 p 2 − 2 p − 19 ≤ 100.
Thus the two simultaneous inequalities to be satisfied by p p p are
(i) 2 p 2 − 2 p − 19 > 0 , \text{(i)}\; 2p^{2}-2p-19 \gt 0, (i) 2 p 2 − 2 p − 19 > 0 ,
(ii) 2 p 2 − 2 p − 119 ≤ 0. \text{(ii)}\; 2p^{2}-2p-119 \le 0. (ii) 2 p 2 − 2 p − 119 ≤ 0.
First, solve (i):
2 p 2 − 2 p − 19 = 0 ⟹ p = 2 ± ( − 2 ) 2 − 4 ⋅ 2 ⋅ ( − 19 ) 4 = 2 ± 2 39 4 = 1 ± 39 2 . 2p^{2}-2p-19=0
\;\;\Longrightarrow\;\;
p=\dfrac{2\pm\sqrt{(-2)^{2}-4\cdot2\cdot(-19)}}{4}
=\dfrac{2\pm2\sqrt{39}}{4}
=\dfrac{1\pm\sqrt{39}}{2}. 2 p 2 − 2 p − 19 = 0 ⟹ p = 4 2 ± ( − 2 ) 2 − 4 ⋅ 2 ⋅ ( − 19 ) = 4 2 ± 2 39 = 2 1 ± 39 .
Numerically,
1 − 39 2 ≈ − 2.6218 , 1 + 39 2 ≈ 3.6218. \dfrac{1-\sqrt{39}}{2}\approx -2.6218,\qquad
\dfrac{1+\sqrt{39}}{2}\approx 3.6218. 2 1 − 39 ≈ − 2.6218 , 2 1 + 39 ≈ 3.6218.
Because the coefficient of p 2 p^{2} p 2 is positive, inequality (i) holds for
p < 1 − 39 2 or p > 1 + 39 2 . p\lt \dfrac{1-\sqrt{39}}{2}\qquad\text{or}\qquad
p\gt \dfrac{1+\sqrt{39}}{2}. p < 2 1 − 39 or p > 2 1 + 39 .
Next, solve (ii):
2 p 2 − 2 p − 119 = 0 ⟹ p = 2 ± ( − 2 ) 2 − 4 ⋅ 2 ⋅ ( − 119 ) 4 = 2 ± 2 239 4 = 1 ± 239 2 . 2p^{2}-2p-119=0
\;\;\Longrightarrow\;\;
p=\dfrac{2\pm\sqrt{(-2)^{2}-4\cdot2\cdot(-119)}}{4}
=\dfrac{2\pm2\sqrt{239}}{4}
=\dfrac{1\pm\sqrt{239}}{2}. 2 p 2 − 2 p − 119 = 0 ⟹ p = 4 2 ± ( − 2 ) 2 − 4 ⋅ 2 ⋅ ( − 119 ) = 4 2 ± 2 239 = 2 1 ± 239 .
Numerically,
1 − 239 2 ≈ − 7.2295 , 1 + 239 2 ≈ 8.2295. \dfrac{1-\sqrt{239}}{2}\approx -7.2295,\qquad
\dfrac{1+\sqrt{239}}{2}\approx 8.2295. 2 1 − 239 ≈ − 7.2295 , 2 1 + 239 ≈ 8.2295.
Since here the quadratic opens upward and the inequality is “≤ 0 \le 0 ≤ 0 ”, condition (ii) is satisfied for
1 − 239 2 ≤ p ≤ 1 + 239 2 . \dfrac{1-\sqrt{239}}{2}\le p\le\dfrac{1+\sqrt{239}}{2}. 2 1 − 239 ≤ p ≤ 2 1 + 239 .
The required p p p must satisfy both (i) and (ii) simultaneously. Intersecting the two solution sets gives two disjoint intervals:
[ 1 − 239 2 , 1 − 39 2 ) and ( 1 + 39 2 , 1 + 239 2 ] . \Bigl[\dfrac{1-\sqrt{239}}{2},\,\dfrac{1-\sqrt{39}}{2}\Bigr)
\;\;\;\text{and}\;\;\;
\Bigl(\dfrac{1+\sqrt{39}}{2},\,\dfrac{1+\sqrt{239}}{2}\Bigr]. [ 2 1 − 239 , 2 1 − 39 ) and ( 2 1 + 39 , 2 1 + 239 ] .
Numerically these are
[ − 7.2295 , − 2.6218 ) and ( 3.6218 , 8.2295 ] . [-7.2295,\,-2.6218)\quad\text{and}\quad(3.6218,\,8.2295]. [ − 7.2295 , − 2.6218 ) and ( 3.6218 , 8.2295 ] .
We now form the set
S = { q : q = p 2 and q is an integer } . S=\{q:q=p^{2} \text{ and } q \text{ is an integer}\}. S = { q : q = p 2 and q is an integer } .
For any q q q in S S S either p = q p=\sqrt{q} p = q or p = − q p=-\sqrt{q} p = − q must lie in at least one of the above intervals.
For p < 0 p\lt 0 p < 0 we require
− q ∈ [ − 7.2295 , − 2.6218 ) ⟺ q ∈ ( 2.6218 , 7.2295 ] . -\sqrt{q}\in[-7.2295,\,-2.6218)
\;\;\Longleftrightarrow\;\;
\sqrt{q}\in(2.6218,\,7.2295]. − q ∈ [ − 7.2295 , − 2.6218 ) ⟺ q ∈ ( 2.6218 , 7.2295 ] .
This implies
6.87 < q ≤ 52.25 , 6.87\lt q\le 52.25, 6.87 < q ≤ 52.25 ,
hence all integers
q = 7 , 8 , 9 , … , 52. q=7,8,9,\ldots,52. q = 7 , 8 , 9 , … , 52.
For p > 0 p\gt 0 p > 0 we require
q ∈ ( 3.6218 , 8.2295 ] , \sqrt{q}\in(3.6218,\,8.2295], q ∈ ( 3.6218 , 8.2295 ] ,
that is
13.12 < q ≤ 67.77 , 13.12\lt q\le 67.77, 13.12 < q ≤ 67.77 ,
whence all integers
q = 14 , 15 , 16 , … , 67. q=14,15,16,\ldots,67. q = 14 , 15 , 16 , … , 67.
The union of the two integer ranges is simply the continuous block
q = 7 , 8 , 9 , … , 67. q=7,8,9,\ldots,67. q = 7 , 8 , 9 , … , 67.
Counting the elements, we get
67 − 7 + 1 = 61. 67-7+1=61. 67 − 7 + 1 = 61.
So, the answer is 61 61 61 .