How Do I Pick These Pairs?

Let 0 < x < 1 0<x<1 and 0 < y < 1 0<y<1 .

Find the number of pairs ( x , y ) (x,y) such that 53 x + 11 y 53x + 11y and 43 x + 47 y 43x + 47y are both integers.


The answer is 2017.

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.

3 solutions

Kartik Sharma
Oct 4, 2016

Let us generalize it a little.

We have to find all real ( x , y ) (x,y) such that both a x + b y ax + by and p x + q y px + qy are integers, for a , b Z a,b \in \mathbb{Z}

Let ( a x + b y , p x + q y ) \displaystyle (ax+by, px+qy) be a point on the Argand plane. (You can also assume it on the Cartesian plane if you like as well).

Now z = ( a x + b y ) + ι ( p x + q y ) \displaystyle z = (ax+by) + \iota (px + qy)

z = ( a + p ι ) x + ( b + q ι ) y \displaystyle z = (a + p\iota)x + (b + q\iota) y

We know 0 < x , y < 1 0< x,y < 1 which implies that when we draw a graph of it, by using parallelogram law(till the upper limit), then all values inside the parallelogram will be valid.

Let us say that it has vertices O ( 0 , 0 ) , A ( a , p ) , B ( b , q ) , C ( a + b , p + q ) \displaystyle O(0,0), A(a,p), B(b, q), C(a+b, p+q)

Now we have our parallelogram i.e. the set of all the possible z z and we have to find those with integer real and imaginary parts.

In other words, we have to find out the internal lattice points. And how do we do that? We use Pick's Theorem.

A = B 2 + i 1 \displaystyle A = \frac{B}{2} + i -1

Area = A = a q b p \displaystyle \text{Area} = A = |aq - bp| (can be found easily)

Boundary lattice points = B = ? \displaystyle \text{Boundary lattice points} = B = ?

On OA, a y p x = 0 , x = a p y \displaystyle ay -px = 0, x = \frac{a}{p} y and corresponding y ( 0 , p ) y \in (0,p) so there is no boundary points except vertices.

On OB, y = q b x \displaystyle y = \frac{q}{b} x and corresponding x ( 0 , b ) x \in (0,b) so there is no boundary points except vertices here too.

On other 2 lines, case is exactly the same because it is a parallelogram.

Therefore, B = 4 B = 4

i = a q b p 4 2 + 1 \displaystyle i = |aq -bp| - \frac{4}{2} + 1

i = a q b p 1 \displaystyle \boxed{i = |aq-bp| - 1}

My solution

If 53x+11y and 43x+47y both are intgers then 96x+58y....(1) and 10x-36y....(2) will also be integers.

Multiplying (1) by 5 and (2) by 48 and subtracting both,we get,

2018y....(3) Which is also an integer!

Thus ,for 0<y<1,

y belongs to {1/2018,2/2018,3/2018.....2017/2018}

Hence there are 2017 solutions.

Please tell me if I m wrong somewhere!

naitik sanghavi - 4 years, 8 months ago

Log in to reply

This is not a general method. This is just too random. Why didn't you eliminate x x from the first 2 integers only. Why you made the added and subtracted equations? If you try to do it in a general way, then you will get that the new set of equations will give after elimination of one variable - 2 ( a q b p ) y 2(aq-bp)y is an integer and then you can compare the answers.

And yeah, you are not getting this of course, because during elimination, you used (5,48) rather than (10,96). Anyways, this is no solution. I hope you got me.

Kartik Sharma - 4 years, 8 months ago

Log in to reply

I encourage you to read my solution, that expands @naitik sanghavi idea's out in full.

Calvin Lin Staff - 4 years, 7 months ago

You haven't proved that for every such value of y y , there is exactly one solution for x x . It's possible that there might be no x x satisfying the conditions, or otherwise many x x satisfying the conditions.

Ivan Koswara - 4 years, 8 months ago

Nice use of Pick's Theorem! I wasn't able to link it into my solution and hence tediously counted the number of lattice points through sums.

Julian Poon - 4 years, 8 months ago

Log in to reply

With Pick's Theorem, you can also generalize it for any domain(if someone is interested enough).

Kartik Sharma - 4 years, 8 months ago

This solution needs formatting. Can anybody help?

Kartik Sharma - 4 years, 8 months ago

THIS IS AMAZING! Where did you get the inspiration to do this?

Manuel Kahayon - 4 years, 8 months ago
Calvin Lin Staff
Oct 27, 2016

I was intrigued by the conversation in the solution discussions and decided to pursue it further. The goal is to overturn the claim "This is just too random" by explaining the theory behind it.

Once again, let's work with the general case, where we want to find all pairs of 0 < x , y < 1 0 < x, y < 1 such that a x + b y ax + by and p x + q y px + qy are integers.

Naitik's observation is that p ( a x + b y ) a ( p x + q y ) = y ( b p a q ) p ( ax+by) - a (px+qy ) = y ( bp - aq) must be an integer.

Assumption 1: b p a q 0 bp - aq \neq 0 .

WLOG, let's assume that b p a q > 0 bp-aq > 0 to keep our math simple.
In this case, it is obvious that y y must be of the form k b p a q \frac{ k } { bp - aq } for some integer 0 k < b p a q 0 \leq k < bp-aq .

The question raised by Ivan is "Why must there be an x x that makes both of the original terms an integer?"

If we repeat the analysis by swapping the terms, then x ( b p a q ) x ( bp-aq) must be an integer, so we also have x = l b p a q x = \frac{ l } { bp-aq} for some integer. If so, we have a l + b k b p a q \frac { al + bk } { bp-aq } is an integer, or that a l b k ( m o d b p a q ) al \equiv -bk \pmod{ bp-aq } .

Assumption 2: gcd ( a , b p ) = 1 \gcd (a,bp) = 1 , which is equivalent to gcd ( a , b p a q ) = 1 \gcd (a,bp-aq) = 1 .

Since a a is not a divisor of b p a q bp-aq , then a 1 ( m o d b p a q ) a^{-1} \pmod{bp-aq} exists and so we have l b k × ( a 1 ) ( m o d b p a q ) l \equiv - bk \times ( a ^{-1} ) \pmod{bp-aq} . Taking the corresponding residue class, we can define x = b k × a 1 b p a q x = \frac{-bk \times a^{-1} } { bp-aq} . Now, it is clear that with this definition, a x + b y ax + by is an integer.

The question raised by Ivan now becomes "Why is the next one also an integer?"

As it turns out, we are really lucky! (Well, it isn't luck, just math.) For the expression to be an integer, we need to show that p l + q k 0 ( m o d b p a q ) p l + q k \equiv 0 \pmod{ bp-aq} , with l b k × ( a 1 ) l \equiv -bk \times (a^{-1}) . Since gcd ( a , b p a q ) = 1 \gcd(a, bp-aq) = 1 , the statement is equivalent to multiplying throughout by a a to get

p l + q k 0 ( m o d b p a q ) p b k + a q k 0 ( m o d p b a q ) , p l + q k \equiv 0 \pmod{ bp-aq} \Leftrightarrow -pbk + aqk \equiv 0 \pmod{pb - aq } ,

which is obviously true.


Now, how do we deal with the assumptions? And how do these assumptions relate to / show up in Kartik's solution?

Assumption 1: If this was not true, what can we say about the 2 expressions?
Assumption 2: What we really needed as that there exists a l l such that a l b k ( m o d b p a q ) al \equiv -bk \pmod{bp-aq } . How many solutions are there in general?

Mostafa Balboul
Dec 6, 2016

We are given two equations that have to be satisfied at once by two unknown real numbers. They aren't real equations per se, but their sums must both equal an integer at once.

43x + 47y = int (integer)

53x + 11y = int

There isn't much we can do in terms of letting the two sides of the equation interact with each other, but we can multiply these equations like we do in regular algebra in order to cancel out certain variables. If we multiply the first equation by 53 and the second by 43 and subtract them from one another, we will get:

2279x + 2491y = int

-2279x - 473y = int

0x + 2018y = int

Here we have our confirmation that y must be a rational fraction whose denominator is 2018 and whose numerator can be any number from 1 to 2017. If you do the same in order to isolate x, you'll see that x must also be a rational fraction of this type.

With that confirmed, we run into a roadblock: although we know for a fact now what x and y are confined to value-wise, we do not know how many possible combinations work. This may not be the best solution, but here's how I handled it. I reworked the two equations we've been given so that the coefficient of one of the variables would be 1; this way I could analyze the equations efficiently. 43 mod 53 is -10. 43 16 mod 53 is -160, which, seeing as 53 -3 is -159, turns out to actually be -1. I multiplied both equations and subtracted accordingly. I also "multiplied" the variables and the int by 2018, so that I could work with whole numbers, more intuitively than fractions. Under this, x and y are integers ranging from 1 to 2017, while "int" is now a whole multiple of 2018.

688x + 752y = whole multiple of 2018

689x + 143y = whole multiple of 2018

609y - x = whole multiple of 2018

It becomes apparent here that for any y value you choose, there is a value of x that works as a solution. No matter what multiple of 609 you pick, you can subtract 2017 or less (including 0) to get an integer multiple of 2018. But, at the same time, there is only ONE positive x in this range that will work for any multiple of 609. Thus, for each of the 2017 rational fractions in the range 0<y<1 whose denominator is 2018, there is one single x-value in the range 0<y<1 that results in a solution. The answer is 2017. What's more, as a consequence of the fact that 609 and 2018 are coprime, 609*y mod 2018 from 1 to 2017 always results in a different value, so we can say that each different possible value of x must be used once. Thus, the domain of both x and y includes all possible values of 1/2018 to 2017/2018.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...