For how many ordered pairs of integers ( x , y ) , such that 1 ≤ x , y ≤ 1 0 0 , can exactly 30 of the numbers between 1 and 60 (inclusive) be expressed as a x + b y where a and b are non-negative integers?
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.
Suppose x , y (WLOG x ≤ y ) with x ≥ 9 . Then note that the only numbers expressible as a x + b y under 6 0 have a + b ≤ 6 . But then it is easy to show at most 2 8 numbers are expressible. Thus it follows if x , y works the minimum of the two must be at most 8 .
Now we do casework on min ( x , y ) = x . Obviously x = 1 . Clearly if x = 2 , then the pair works iff y is even and y ≤ 6 0 or y ≥ 6 1 .
Observe that g cd ( x , y ) = 1 , 2 because it is clear that at most ⌊ g cd ( x , y ) 6 0 ⌋ integers are expressible. The rest of this solution will assume this without mention. For the rest of this solution if we say a set of numbers are the only expressible ones, it means all expressible numbers under 6 0 are a subset of the given set.
If x = 3 , note that y > 3 0 as otherwise 3 , 6 , . . . , 6 0 , y , y + 3 , y + 6 , . . . , y + 3 0 are 3 1 distinct expressible numbers (remember that 3 ∤ y ). It is easy to check 3 1 , 3 2 work and that all integers above 3 2 fail due to 3 , 6 , . . . , 6 0 , y , y + 3 , . . . , y + 3 k for some k < 9 being the only expressible integers.
If x = 4 then we need y > 2 0 as otherwise 4 , 8 , . . . , 6 0 , y + 4 , . . . , y + 4 0 , 2 y , . . . , 2 y + 2 0 , 3 y are expressible (this fails for y even due to them not being distinct, but then just note that y even and this working forces 2 to be expressible so y = 2 , contradicting y ≥ x ). One can check y = 2 1 works and for y ≥ 2 3 it fails because the expressible integers are only 4 , 8 , . . . , 6 0 , y + 4 , . . . , y + 4 k 1 , 2 y , . . . , 2 y + 4 k 2 for some k 1 ≤ 9 , k 2 ≤ 3 and that for y = 2 2 it fails due to it being even.
If x = 5 then y > 1 5 as otherwise 5 , . . . , 6 0 , y , . . . , y + 4 5 , 2 y , . . . , 2 y + 3 0 , 3 y , . . . , 3 y + 1 5 , 4 y . Clearly y = 1 6 works. If y > 1 6 then the only expressible integers are 5 , . . . , 6 0 , y , . . . , y + 4 0 , 2 y , . . . . , 2 y + 2 5 , 3 y , 3 y + 5 which has less than 3 0 elements.
If x = 6 then clearly y is odd by arguments made earlier. We see that y > 1 2 as otherwise 6 , . . . , 6 0 , y , . . . , y + 4 8 , 2 y , . . . , 2 y + 3 6 , 3 y , . . . , 3 y + 2 4 , 4 y , . . . , 4 y + 1 2 , 5 y are expressible. It is obvious y = 1 3 works and then for y > 1 3 only 6 , . . . , 6 0 , y , . . . , y + 4 2 , 2 y , . . . , 2 y + 3 0 , 3 y , . . . , 3 y + 1 8 , 4 y which only has 2 9 < 3 0 elements.
If x = 7 then we see that y > 1 0 as otherwise 7 , . . . , 5 6 , y , . . . , y + 4 9 , 2 y , . . . , 2 y + 3 5 , 3 y , . . . , 3 y + 2 8 , 4 y , . . . , 4 y + 1 4 , 5 y , 5 y + 7 , 6 y are expressible. It is obvious y = 1 1 works and then for y > 1 1 only 7 , . . . , 5 6 , y , . . . , y + 4 2 , 2 y , . . . , 2 y + 3 5 , 3 y , . . . , 3 y + 2 1 , 4 y , 4 y + 7 , 5 y which only has 2 8 < 3 0 elements.
If x = 8 then y must be odd. It is easy to check y = 9 fails so y ≥ 1 1 . But then only 8 , . . . , 5 6 , y , . . . , y + 4 8 , 2 y , . . . , 2 y + 3 2 , 3 y , . . . , 3 y + 2 4 , 4 y , . . . , 4 y + 1 6 , 5 y are expressible which has 2 7 < 3 0 elements. Thus there are no solutions when x = 8 .
Summarizing our work, we have found 6 ⋅ 2 = 1 2 solutions when the minimum is not 2 . When the minimum is 2 clearly there are 3 0 ⋅ 2 − 1 + 2 ⋅ 4 0 = 1 3 9 solutions. Therefore there are 1 2 + 1 3 9 = 1 5 1 total solutions and thus we are done.
If x and y are not relatively prime, ( 2 , 2 k ) and ( 2 k , 2 ) will work for 1 ≤ k ≤ 5 0 . This gives 9 9 pairs. If x and y are not relatively prime, then let g = g cd ( x , y ) . If g = 2 and neither x , nor y is equal to 2 , then we can get at most 2 9 number between 1 and 60, since we can only get even numbers, and we cannot get 2 . If g > 2 then we get at most g 6 0 < 3 0 possible numbers. Henceforth we may assume that g = 1 .
By the Chicken McNugget Theorem, if x , y ≤ 9 then there are fewer than 30 numbers that cannot be expressed. If x , y ≥ 9 , then any number less than or equal to 60 that can be expressed as a x + b y has a + b ≤ 6 . When a + b = k , there are at most k + 1 different sums less than or equal to 80 that we can get. Combining these two facts, we have that there are at most 2 + 3 + 4 + 5 + 6 + 7 = 2 7 different numbers less than 60 that can be expressed this way.
Thus, we may conclude that x ≤ 8 and y ≥ 1 0 or vice versa. x = 1 yields no solutions since all numbers are expressible. x = 2 gives us 30 expressible numbers of the form a x . So as long as y ≥ 6 1 , ( 2 , y ) will have 30 expressible numbers. This gives 20 additional solutions.
This leaves x = 3 , 4 , 5 , 6 , 7 , 8 to consider. Notice that if p ≤ x , q ≤ y and g cd ( p , q ) = g cd ( x , y ) = 1 then the number of non-expressible numbers less than 60 of the form a x + b y is greater than or equal to the number non-expressible numbers less than 60 of the form a p + a q . By the Chicken McNugget Theorem, we must have ( x − 1 ) ( y − 1 ) ≥ 6 0 . When ( x − 1 ) ( y − 1 ) = 6 0 then all 30 non-expressible numbers are less than 60, and so the pair will work.
When x = 3 , we must have y ≥ 3 1 . We see that y = 3 1 will work since 2 × 3 0 = 6 0 . y = 3 2 also gives 30 expressible numbers. y = 3 4 gives only 29 expressible numbers, so 3 1 and 3 2 are the only y values which work.
When x = 4 , y = 2 1 will work, since 3 × 2 0 = 6 0 . y = 2 3 does not work, and so nothing larger than y = 2 1 will.
When x = 5 , y = 1 6 will work, since 4 × 1 5 = 6 0 . y = 1 7 does not work and so nothing larger than y = 1 6 will.
When x = 6 , y = 1 3 will work, since 5 × 1 2 = 6 0 . y = 1 7 does not work and so nothing larger than y = 1 3 will.
When x = 7 , y = 1 1 will work, since 6 × 1 0 = 6 0 . y = 1 2 does not work and so nothing larger than y = 1 1 will.
When x = 8 , there is no y such that 7 ( y − 1 ) = 6 0 . The smallest y ≥ 1 0 that is coprime with 8 is y = 1 1 . For any pair ( a , b ) such that 8 a + 1 1 b ≤ 6 0 , the pair 7 a + 1 1 b ≤ 6 0 . We know there are exactly 30 pairs that make 7 a + 1 1 b ≤ 6 0 , however the pair ( 8 , 0 ) will not work for 8 a + 1 1 b ≤ 6 0 , so there are no solutions when x = 8 .
This has given us 26 solutions when x and y are relatively prime, x ≤ 8 and y ≥ 1 0 : ( 3 , 3 1 ) , ( 3 , 3 2 ) , ( 4 , 2 1 ) , ( 5 , 1 6 ) , ( 6 , 1 3 ) , ( 7 , 1 1 ) and the 20 solutions of the form ( 2 , 2 k + 1 ) . When x ≥ 1 0 and y ≤ 8 we get the same number of solutions. Thus, in total we have 9 9 + 5 2 = 1 5 1 ordered pairs.
Problem Loading...
Note Loading...
Set Loading...
let k(x,y) be the numbers between 1 and 60 that can be expressed as ax + by.
if x and y are not coprime, then any numbers not a multiple of gcd(x,y) cannot possibly be expressed. hence k ( x , y ) ≤ g c d ( x , y ) 6 0 . Since 60/2 = 30, so as long as either x or y is 2, and the other number is either a multiple of 2 or 61 and above, all the even numbers between 1 and 60 can be expressed; 30 numbers. This gives us (2,2), (2,4)... (2,60), (2,61)...(2,100), 70 solutions. But since (x,y) is an ordered pair, we have 69 more solutions of (4,2)...(60,2), etc. This gives us a total of 139 solutions. There are no other solutions with g cd ( x , y ) ≥ 2 .
If x and y are coprime, then assume without loss of generality that x < y. then k ( x , y ) = ⌊ x 6 0 ⌋ + ∑ i = 1 ⌊ y 6 0 ⌋ ( ⌊ x 6 0 − i y ⌋ + 1 ) . Also note that k ( x , ( y + 1 ) ) ≤ k ( x , y ) , with equality possible only if ⌊ x y ⌋ = ⌊ x y + 1 ⌋ . [Note: This equation, and inequality, is key to finding the actual sets - Calvin]
From here on, it's trying out different ordered pairs of (x,y) knowing fully that with each value of x, very few values of y can satisfy the conditions.
k(3,61) = 20. We need 10 more numbers; easily achieved with the set (31, 34, 37... 58) or (32, 35... 59). So four more possible ordered pairs are found: (3,31), (3,32), (31,3), (32,3). Moving further, we find (4,21), (5,16), (6,13), (7,11). After this, k(8,9) = 32 and using the facts that k ( x , ( y + 1 ) ) ≤ k ( x , y ) and gcd(x,y) = 1, there are no more possible solutions. This gives us a total of 139 + 4 + 2 + 2 +2 + 2 = 151 ordered pairs.