Solution 1
It is trivial that the maximum value of sinθ is 1, is achieved at θ=2π+2kπ for some integer k.
This implies that sin(mx)=sin(nx)=1, and that mx=2π+2aπ and nx=2π+2bπ, for integers a,b.
Taking their ratio, we have
nxmx=2π+2bπ2π+2aπ⟹nm=4b+14a+1⟹4a+1m=4b+1n=k.
It remains to find all m,n that satisfy this equation.
If k=1, then m≡n≡1(mod4). This corresponds to choosing two elements from the set {1,5,9,13,17,21,25,29}. There are (28) ways to do so.
If k<1, by multiplying m and n by the same constant c=k1, we have that mc≡nc≡1(mod4). Then either m≡n≡1(mod4), or m≡n≡3(mod4). But the first case was already counted, so we don't need to consider that case. The other case corresponds to choosing two numbers from the set {3,7,11,15,19,23,27}. There are (27) ways here. (This argument seems to have a logical flaw *check note at bottom*)
Finally, if k>1, note that k must be an integer. This means that m,n belong to the set {k,5k,9k,…}, or {3k,7k,11k,…}. Taking casework on k, we get the sets {2,10,18,26},{6,14,22,30},{4,20},{12,28}. Some sets have been omitted; this is because they were counted in the other cases already. This sums to (24)+(24)+(22)+(22).
In total, there are (28)+(27)+(24)+(24)+(22)+(22)=063 pairs of (m,n).
This solution was brought to you by ~Leonard_my_dude~
Note: Detailed Explanation for m≡n≡3(mod4)
Many of the solutions I see here lack an explicit explanation for why every solution to m≡n≡3(mod4) constitutes a valid solution to the problem, so I will explain it here. The reason why all solutions where m≡n≡1(mod4) works is pretty intuitive, as nm would then be able to be expressed as 4b+14a+1. Similarly, note that −(4x+1)≡3(mod4). Thus, when solving the equation for nm=4b+14a+1, every case in which m≡n≡3(mod4) will produce a valid solution when a and b are both negative. For example, when m=7 and n=11, a=−2 and b=−3 gives 4b+14a+1=−11−7=117. Thus, we add (27) as every case where m≡n≡3(mod4) produces a valid solution.
- yangomango
Other explanation
Clearly, mx=90+360k and nx=90+360a. From here, we can divide both equations to get mn=1+4k1+4a. But m and n might share a common factor, so let that common factor be d. We get dn≡dm≡1(mod4). Taking casework on dmod4, we see either d≡1(mod4) or d≡3(mod4). Substituting back, we see 3n≡3m≡1(mod4) or n≡m≡1(mod4). The first case gives n≡m≡3(mod4), and the second obviously gives n≡m≡1(mod4). Now you may proceed as other solutions do.
~ eqb5000
Solution 2
In order for sin(mx)+sin(nx)=2, sin(mx)=sin(nx)=1.
This happens when mx≡nx≡2π(mod 2π).
This means that mx=2π+2πα and nx=2π+2πβ for any integers α and β.
As in Solution 1, take the ratio of the two equations:
nxmx=2π+2πβ2π+2πα⟹nm=21+2β21+2α⟹nm=4β+14α+1
Now notice that the numerator and denominator of 4β+14α+1 are both odd, which means that m and n have the same power of two (the powers of 2 cancel out).
Let the common power be p: then m=2p⋅a, and n=2p⋅b where a and b are integers between 1 and 30.
We can now rewrite the equation:
2p⋅b2p⋅a=4β+14α+1⟹ba=4β+14α+1
Now it is easy to tell that a≡1(mod 4) and b≡1(mod 4). However, there is another case: that
a≡3(mod 4) and b≡3(mod 4). This is because multiplying both 4α+1 and 4β+1 by −1 will not change the fraction, but each congruence will be changed to −1(mod 4)≡3(mod 4).
From the first set of congruences, we find that a and b can be two of {1,5,9,…,29}.
From the second set of congruences, we find that a and b can be two of {3,7,11,…,27}.
Now all we have to do is multiply by 2p to get back to m and n. Let’s organize the solutions in order of increasing values of p, keeping in mind that m and n are bounded between 1 and 30.
For p=0 we get {1,5,9,…,29},{3,7,11,…,27}.
For p=1 we get {2,10,18,26},{6,14,22,30}
For p=2 we get {4,20},{12,28}
Note that 16∣a since m will cancel out a factor of 4 from a, and ma must contain a factor of 4. Again, 1−4X will never contribute a factor of 2. Simply inspecting, we see two feasible values for a and m such that a+m≤30.
If we increase the value of p more, there will be less than two integers in our sets, so we are done there.
There are 8 numbers in the first set, 7 in the second, 4 in the third, 4 in the fourth, 2 in the fifth, and 2 in the sixth.
In each of these sets we can choose 2 numbers to be m and n and then assign them in increasing order. Thus there are:
(28)+(27)+(24)+(24)+(22)+(22)=28+21+6+6+1+1=063
possible pairs (m,n) that satisfy the conditions.
-KingRavi
Solution 3
We know that the range of sine is between −1 and 1, inclusive.
Thus, the only way for the sum to be 2 is for sin(mx)=sin(nx)=1.
Note that sin(90+360k)=1.
Assuming mx and nx are both positive, m and n could be 1,5,9,13,17,21,25,29. There are 8 ways, so (28).
If both are negative, m and n could be 3,7,11,15,19,23,27. There are 7 ways, so (27).
However, the pair (1,5) could also be (2,10) and so on. The same goes for some other pairs.
In total there are 14 of these extra pairs.
The answer is 28+21+14=063.
Solution 4
The equation implies that sin(mx)=sin(nx)=1. Therefore, we can write mx as 2πk1+2π and nx as 2πk2+2π for integers k1 and k2. Then, nxmx=nm=2k2+212k1+21. Cross multiplying, we get m⋅(2k2+21)=n⋅(2k1+21)⟹4k2m−4k1n=n−m. Let n−m=a so the equation becomes 4(m(k2−k1)+k1a)=a. Let k2−k1=X and k1=Y, then the equation becomes a=4Ym+4Xa⟹ma(1−4X)=4Y. Note that X and Y can vary accordingly, and 4∣a. Next, we do casework on m(mod4):
If m≡1(mod4):
Once a and m are determined, n is determined, so a+m≤30. a∈{4,8,12,…,28} and m∈{1,5,9,…,29}. Therefore, there are ∑i=17i=28 ways for this case such that a+m≤30.
If m≡3(mod4):
a∈{4,8,12,…,28} and m∈{3,7,11,…,27}. Therefore, there are ∑i=16i=21 ways such that a+m≤30.
If m≡2(mod4):
Note that 8∣a since m in this case will have a factor of 2, which will cancel out a factor of 2 in a, and we need the left hand side to divide 4. Also, 1−4X≡1(mod4) so it is odd and will therefore never contribute a factor of 2. a∈{8,16,24} and m∈{2,6,10,…,30}. Following the condition a+m≤30, we conclude that there are 6+4+2=12 ways for this case.
If m≡0(mod4):
Adding all the cases up, we obtain 28+21+12+2=063
~Magnetoninja
Remark
The graphs of r≤sin(mθ)+sin(nθ) and r=2 are shown here in Desmos: https://www.desmos.com/calculator/busxadywja
Move the sliders around for 1≤m≤29 and 2≤m+1≤n≤30 to observe the geometric representation generated by each pair (m,n).
~MRENTHUSIASM (inspired by TheAMCHub)
Video Solution
https://youtu.be/O84aJ5OTZ2E
~mathproblemsolvingskills
Video Solution
https://www.youtube.com/watch?v=LUkQ7R1DqKo
~Mathematical Dexterity