New Year's Countdown Day 31: One Last Day

Consider the equation

20 x + 17 y = 31. 20x + 17y = 31.

Let a , b a, b be integers such that ( x , y ) = ( a , b ) (x, y) = (a, b) is a solution to the equation, and a + b |a + b| is minimized. Find the value of a b . a - b.


This problem is part of the set New Year's Countdown 2017 .


The answer is 33.

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

Steven Yuan
Dec 31, 2017

First, observe that ( x , y ) = ( 1 , 3 ) (x, y) = (-1, 3) is a solution to the equation, since 20 ( 1 ) + 17 ( 3 ) = 20 + 51 = 31. 20(-1) + 17(3) = -20 + 51 = 31. Then, any Diophantine solution to the equation can be expressed as

( x , y ) = ( 1 + 17 n , 3 20 n ) (x, y) = (-1 + 17n, 3 - 20n)

for some integer n , n, because 20 ( 1 + 17 n ) + 17 ( 3 20 n ) = 20 + 20 ( 17 ) n + 51 17 ( 20 ) n = 31. 20(-1 + 17n) + 17(3 - 20n) = -20 + 20(17)n + 51 - 17(20)n = 31.

The sum of these two expressions is

1 + 17 n + 3 20 n = 2 3 n , -1 + 17n + 3 - 20n = 2 - 3n,

and our task is to minimize its absolute value. This is achieved when n = 1 n = 1 to give 2 3 ( 1 ) = 1 |2 - 3(1)| = 1 as the minimum possible value of x + y . |x + y|.

Therefore, a = 1 + 17 ( 1 ) = 16 a = -1 + 17(1) = 16 and b = 3 20 ( 1 ) = 17 , b = 3 - 20(1) = -17, and a b = 16 ( 17 ) = 33 . a - b = 16 - (-17) = \boxed{33}.


This concludes the New Year's Countdown 2017 series. Thanks to everyone on Brilliant for your support this year. I hope that 2017 has treated you well, and may 2018 go even better for everybody. Happy New Year!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...