Rotating the Hyperbola

Geometry Level 4

A hyperbola H H with equation x y = n xy=n (where n 1000 n\le 1000 ) is rotated 4 5 45^{\circ} to obtain the hyperbola H H' . Let the positive difference between the number of lattice points on H H and H H' be D D . Given that both H H and H H' have at least one lattice point, find the maximum possible value of D D .

Details and Asumptions: A lattice point is a point that has integer x x - and y y -coordinates.

You may want to look at the list of Highly Composite Numbers .


The answer is 24.

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.

1 solution

Daniel Liu
May 19, 2014

We should first try to find an equation for the hyperbola H H' before attempting anything else. But how do we rotate an object? The answer is, of course, polar coordinates!

We substitute x = r cos θ x=r\cos\theta and y = r sin θ y=r\sin\theta into H H to get

( r cos θ ) ( r sin θ ) = n (r\cos\theta)(r\sin\theta)=n

To do a rotation of 4 5 45^{\circ} , we plug in θ + 45 \theta+45 for θ \theta :

( r cos ( θ + 45 ) ) ( r sin ( θ + 45 ) ) = n (r\cos(\theta+45))(r\sin(\theta+45))=n

Now we can use the angle sum formulas for sin \sin and cos \cos :

( r ( cos θ cos 45 sin θ sin 45 ) ) ( r ( sin θ cos 45 + cos θ sin 45 ) ) = n (r(\cos\theta\cos45 - \sin\theta\sin45))(r(\sin\theta\cos45+\cos\theta\sin45))=n

We can use the distributive property and substitute back r cos θ = x r\cos\theta=x and r sin θ = y r\sin\theta = y to get

( x cos 45 y sin 45 ) ( y cos 45 + x sin 45 ) = n (x\cos45 - y\sin45)(y\cos45+x\sin45)=n

We know that sin 45 = cos 45 = 1 2 \sin45=\cos45=\dfrac{1}{\sqrt{2}} :

( 1 2 ( x y ) ) ( 1 2 ( x + y ) ) = n \left(\dfrac{1}{\sqrt{2}}(x-y)\right)\left(\dfrac{1}{\sqrt{2}}(x+y)\right)=n

Simplifying:

1 2 ( x + y ) ( x y ) = n \dfrac{1}{2}(x+y)(x-y)=n

Which gives us the final equation for our hyperbola H H' as:

x 2 y 2 = 2 n x^2-y^2=2n

Now we must count the number of lattice points of H H and H H' .


The number of lattice points of H H (call this L L ) is not hard to figure out: We have the equation x y = n xy=n ,so it is simply L = 2 × ( number of factors of n ) L=2\times (\text{number of factors of }n) . We multiply the number of factors of n n by 2 2 because x x and y y can both be negative or positive.

The number of lattice points of H H' (call this L L' ) is a little harder to figure out. We can first refactor the equation to ( x + y ) ( x y ) = 2 n (x+y)(x-y)=2n Note that since x , y x,y are both integers, x + y , x y x+y,x-y must both be even or both be odd. Since 2 n 2n is an even number, they must both be even. Thus, we must have that both x + y x+y and x y x-y contribute a factor of 2 2 . Thus, we can substitute x + y = 2 a x+y=2a and x y = 2 b x-y=2b to get the simplified equation a b = n 2 ab=\dfrac{n}{2}

We know how to solve this equation: it is simply L = 2 × ( number of factors of n 2 ) L'=2\times (\text{number of factors of }\dfrac{n}{2}) just like the previous case. Now we just need to actually compute the value of each one.


Let n = 2 e 1 3 e 2 5 e 3 n=2^{e_1}\cdot 3^{e_2}\cdot 5^{e_3}\cdots

We have that

L = 2 ( e 1 + 1 ) ( e 2 + 1 ) ( e 3 + 1 ) L=2(e_1+1)(e_2+1)(e_3+1)\cdots

Note that n 2 = 2 e 1 1 3 e 2 5 e 3 \dfrac{n}{2}=2^{e_1-1}\cdot 3^{e_2}\cdot 5^{e_3}\cdots .

Thus,

L = 2 e 1 ( e 2 + 1 ) ( e 3 + 1 ) L'=2e_1(e_2+1)(e_3+1)\cdots

and the difference between them is

D = L L = 2 ( e 2 + 1 ) ( e 3 + 1 ) ( e 4 + 1 ) D=L-L'=2(e_2+1)(e_3+1)(e_4+1)\cdots

Thus, we want to maximize the value of 2 ( e 2 + 1 ) ( e 3 + 1 ) ( e 4 + 1 ) 2(e_2+1)(e_3+1)(e_4+1)\cdots

such that 2 e 1 3 e 2 5 e 3 1000 2^{e_1}\cdot 3^{e_2}\cdot 5^{e_3}\cdots \le 1000

First, note that since e 1 e_1 does not affect D D , we should let e 1 = 1 e_1=1 (we can't let e 1 = 0 e_1=0 or else n 2 \dfrac{n}{2} is not an integer).

Thus, n = 2 3 e 2 5 e 3 7 e 4 n=2\cdot 3^{e_2}\cdot 5^{e_3}\cdot 7^{e_4}\cdots

Guessing and checking is probably the best way to go from here. We want 3 e 2 5 e 3 7 e 4 500 3^{e_2}\cdot 5^{e_3}\cdot 7^{e_4}\cdots \le 500 ; there isn't that many possibilities for e 2 , e 3 , e_2,e_3,\ldots . We find that e 2 = 2 e_2=2 , e 3 = 1 e_3=1 , and e 4 = 1 e_4=1 gives the highest value of D D .

This means n = 2 × 3 2 × 5 × 7 = 630 n=2\times 3^2\times 5\times 7=630 .

Finally, D = 2 ( 3 ) ( 2 ) ( 2 ) = 24 D=2(3)(2)(2)=\boxed{24} and we are done.


Some interesting things to note from this solution:

D > 0 D > 0 because 2 ( e 2 + 1 ) ( e 3 + 1 ) ( e 4 + 1 ) 2(e_2+1)(e_3+1)(e_4+1)\cdots can never be 0 0 .

D D must be even (although in hindsight this is obvious because of the symmetries of the hyperbola)

The maximum D D is at n = 630 n=630 , which isn't even close to the upper bound restriction n 1000 n\le 1000

Computing, we have that the number of lattice points on x y = 630 xy=630 is 48 48 , while the number of lattice points on x 2 y 2 = 1260 x^2-y^2=1260 is only 24 24 .

You forgot an important detail. If n n is odd, then the equation x 2 y 2 = 2 n x^2 - y^2 = 2n has no solutions. (You can see this from your equation a b = n / 2 ab = n/2 .)

For n = 945 n = 945 , H H has 32 lattice points, and H H' has zero lattice points, so D = 32 D = 32 . This is the maximum for n 1000 n \le 1000 .

Jon Haussmann - 7 years ago

Log in to reply

Aw darn, I originally had my answer as 32, then I changed it but forgot to change the wording of the problem. Sorry. It's fixed now.

Daniel Liu - 7 years ago

Log in to reply

Wait what you had to fix the wording? @Calvin Lin Violation!

Finn Hulse - 7 years ago

Log in to reply

@Finn Hulse @Finn Hulse That is the intention of the report system, so that problem creators can quickly fix any potential issues, like missing/unclear conditions, by editing the problem suitably. This question has been updated in a suitably timely manner.

There is a huge difference between that and "I'm going to ignore all of the reports that I get and insist repeatedly that my answer is correct and everyone else is wrong". When people give you feedback, you should consider what they are saying and not be dismissive of it.

Calvin Lin Staff - 7 years ago

Log in to reply

@Calvin Lin Aww I'm sorry dude. I'll try not to do that but you saw my comment on the other note right?

Finn Hulse - 7 years ago

@Daniel Liu I think he's right. I got 32 as well. :O

Finn Hulse - 7 years ago

I have updated this such that those who answered 32 previously have been marked correct.

Calvin Lin Staff - 7 years ago

Beautiful Question :)

@Daniel Liu

A Former Brilliant Member - 6 years, 3 months ago

Log in to reply

Indeed it is

Piyushkumar Palan - 2 years, 4 months ago

I am still getting 32 :(

Dhruv Joshi - 4 years, 2 months ago

Log in to reply

H' has no lattice point for n like 945...updated question necessitates at least one lattice point. So n will be even.

Piyushkumar Palan - 2 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...