How Many Numbers Cannot Be Written as xa+yb?

Click For Summary

Homework Help Overview

The discussion revolves around determining how many natural numbers cannot be expressed in the form xa + yb, where a and b are relatively prime natural numbers, and x and y are nonnegative integers. The original poster is exploring the implications of this expression and seeking to identify specific numbers that cannot be represented in this way.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to derive a formula for the largest number that cannot be expressed in the form xa + yb, suggesting that it is ab - a - b. They seek clarification on how to identify all numbers within a certain range that cannot be expressed in this form.

Discussion Status

Participants are engaging with the original poster's reasoning and exploring the mathematical foundations related to the problem. Some participants reference Bezout's theorem and discuss the implications of the gcd condition, but there is no explicit consensus on the methods or conclusions being drawn.

Contextual Notes

The original poster notes their level of familiarity with advanced methods, indicating a potential constraint in the depth of mathematical techniques they are comfortable with. There is also a mention of a previous post that may not be relevant to the current discussion.

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
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
14
Views
5K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K