How Many Numbers Cannot Be Written as xa+yb?

AI Thread Summary
When a and b are relatively prime natural numbers, the largest integer that cannot be expressed in the form xa + yb, where x and y are nonnegative integers, is given by the formula ab - a - b. To find all numbers between 1 and ab - a - b that cannot be expressed in this form, one must analyze the constraints on x and y. The discussion references Bezout's theorem, indicating that solutions can be derived using integer combinations of a and b. The conversation also highlights the importance of understanding the implications of the greatest common divisor in this context. Overall, the thread seeks to clarify the method for identifying non-representable integers in this mathematical framework.
EulerRules
Messages
3
Reaction score
0
If a and b are relatively prime natural numbers, how many numbers cannot be written on the form xa+yb where x and y are nonnegative integers?

My thoughts:
Let n be a fixed integer such thatn=ax_{0}+by_{0}. Assume that we want to minimize x_{0} but keep it nonnegative. Then the following must be true:
0 \leq x_{0} \leq b-1
If n cannot be expressed where both x0 and y0 are positive (I am trying to get at the maximum number which cannot be expressed on above form), then the following must be true as well
y_{0} \leq -1
and
ax_{0}>n
Since y0 is negative, the following holds true:
ax_{0}-b \geq n
And since x_{0}\leq b-1
a(b-1)-b \geq n \rightarrow ab-a-b \geq n
The largest number that cannot be written on above form is ab-a-b. How do I determine what numbers between 1 and ab-a-b that cannot be written on the form?

IF you have any other ideas on how to solve this problem, please share them with me. But do keep in mind that I'm only a junior in high school so I may not be familiar with more "advanced" methods.
 
Physics news on Phys.org
Since ##a## and ##b## are relatively prime, you can find ##(u,v)\in \mathbb{Z}^2## such that ##1 = a u + bv## (Bezout theorem).
You must have ## a (x -u(ax+by) ) = b (v(ax+by) - y) ##.
Using again that ##\text{gcd}(a,b) = 1##, ## a ## divides ## (v(ax+by) - y) ## and ## b ## devides ## (x -u(ax+by) ) ##. Solving that will give you the set of solutions in ##\mathbb{Z}^2## for ##(x,y)## depending on ##a,b,u,v## and some factors ##k,k'##.
 
geoffrey159, you replied to a post two years old. The poster hasn't logged into PF since that time.
 
Sorry, I won't do it anymore
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...

Similar threads

Back
Top