The equation of the rose curve is given by the polar equation where is a positive rational number.
Determine the total number of unique 's such that the closed curve intersects the axes exactly 2018 times.
Closed curve of equation
. Here, the curve intersects the axes 40 times.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We write k as q p , where p and q are positive, relatively prime integers. The curve begins ( θ = 0 ) at r = 1 on the polar axis, or equivalently the point ( 1 , 0 ) on the x -axis. It reaches the pole (the origin) for the first time when q p θ = 2 π , i.e. when θ = 2 p q π . By then it has completed half of a petal, which means that θ has to rotate through p q π to complete one full petal.
In order to complete the rose, the curve must return to its starting point, which will happen in one of two ways: either θ is a multiple of 2 π and r = 1 , the latter implying that q p θ is also a multiple of 2 π ; or θ is an odd multiple of π and r = − 1 , the latter again implying that q p θ is also an odd multiple of π .
Given that p and q are relatively prime, we now have to consider three cases: p is odd and q is even (henceforth referred to as E O ); p is even and q is odd ( O E ); and p and q are both odd ( O O ).
Note that in the first two cases, E O and O E , it is not possible for θ and q p θ to both be odd multiples of π ; they can however both be multiples of 2 π , and the smallest positive θ for which this will happen is 2 q π . This means that, since one petal requires θ to rotate through p q π , a complete rose will consist of 2 p petals.
On the other hand, in the third case, ( O O ), it is not possible for θ and q p θ to both be multiples of 2 π ; they can however both be odd multiples of π , and the smallest positive θ for which this will happen is q π . In this case, a complete rose will only have p petals.
We are now ready to count the number of times a rose will intersect one or both of the axes. This happens whenever θ is a multiple of 2 π , or when q p θ is an odd multiple of 2 π , the latter because then r = 0 and the curve will go through the pole. However, because these two conditions can potentially occur for the same value of θ , we must be careful to remove any "overlaps".
Case ( E O ): Since θ must rotate through 2 q π to complete the rose, it will be a multiple of 2 π a total of 4 q times. Since this rose will have 2 p petals, it will go through the pole 2 p times. Can these happen simultaneously? Suppose q p θ is an odd multiple of 2 π , i.e. q p θ = 2 ( 2 n + 1 ) π for some whole n ; then θ = 2 p ( 2 n + 1 ) q π . For θ to be a multiple of 2 π , ( 2 n + 1 ) would have to be a multiple (and by necessity, an odd multiple) of p ; this will only happen twice within the range 0 ≤ θ < 2 q π , namely when ( 2 n + 1 ) = p and ( 2 n + 1 ) = 3 p . Thus the number of times this rose will intersect the axes is 4 q + 2 p − 2 .
Case ( O E ): By the same reasoning as in the above case, θ will be a multiple of 2 π a total of 4 q times and the rose will go through the pole 2 p times. Again, to see whether these can happen simultaneously, we let q p θ = 2 ( 2 n + 1 ) π for some whole n , and again, θ = 2 p ( 2 n + 1 ) q π . This time, however, θ can never be a multiple of 2 π as ( 2 n + 1 ) and q are both odd while p is even. So the number of times this rose will intersect the axes is 4 q + 2 p .
Case ( O O ): Here θ must rotate through q π to complete the rose, so it will be a multiple of 2 π only 2 q times. Also, since this rose will only have p petals, it will go through the pole only p times. Once again to check for overlap, we let q p θ = 2 ( 2 n + 1 ) π for some whole n , and once more, θ = 2 p ( 2 n + 1 ) q π . This will only be a multiple of 2 π once within the range 0 ≤ θ < q π , namely when ( 2 n + 1 ) = p . Thus the number of times this rose will intersect the axes is 2 q + p − 1 .
Finally, we can check whether any of the three cases can have exactly 2018 axes crossings.
Case ( E O ): We get 4 q + 2 p − 2 = 2 0 1 8 , i.e 2 q + p = 1 0 1 0 , which has no valid solutions as p is odd.
Case ( O E ): We get 4 q + 2 p = 2 0 1 8 , i.e 2 q + p = 1 0 0 9 , which has no valid solutions as p is even.
Case ( O O ): We get 2 q + p − 1 = 2 0 1 8 , i.e 2 q + p = 2 0 1 9 , which has valid solutions.
The equation 2 q + p = 2 0 1 9 has 1009 solutions over positive integers, from ( p , q ) = ( 1 , 1 0 0 9 ) to ( p , q ) = ( 2 0 1 7 , 1 ) . We need p and q to both be odd; for this it suffices that q is odd. We also need to ensure that p and q are relatively prime. As 2 0 1 9 has prime factors 3 and 6 7 3 , we need p and q to not both be multiples of one of those two numbers; the former would happen if q is a multiple of three, the latter would only happen in one case, if q = p = 6 7 3 .
To ensure q is neither even nor a multiple of three, we use inclusion-exclusion; from 1009, we subtract the ⌊ 2 1 0 0 9 ⌋ multiples of 2 as well as the ⌊ 3 1 0 0 9 ⌋ multiples of 3 , and then add back the ⌊ 6 1 0 0 9 ⌋ multiples of 6 . Finally we subtract 1 for the single case ( 6 7 3 , 6 7 3 ) .
Thus the number of unique k 's for which the rose r = cos ( k θ ) intersects the axes exactly 2018 times is
1 0 0 9 − ⌊ 2 1 0 0 9 ⌋ − ⌊ 3 1 0 0 9 ⌋ + ⌊ 6 1 0 0 9 ⌋ − 1 = 1 0 0 9 − 5 0 4 − 3 3 6 + 1 6 8 − 1 = 3 3 6