EulerRules
New member
- Joined
- Mar 27, 2013
- Messages
- 5
First of all: I am not sure if this is the correct subforum to post this thread, so please move it if it has been incorrectly placed.
If and a and b are relatively prime natural numbers, how many natural numbers cannot be written on the form xa+yb where x and y are nonnegative integers?
My thoughts:
First of all, we want to know the highest number that cannot be written on above form. That will make it easier to then investigate the numbers between 1 and said number that cannot be written on above form.
Let n be a fixed integer (also negative) such that \(\displaystyle n = ax_{0}+by_{0}.\) If n lacks solutions for positive x0 and y0, assume that we want x0 to be as small as positive but nonetheless nonnegative. Then the following holds true:
\(\displaystyle 0 \leq x_{0} \leq b-1\)
\(\displaystyle y_{0} \leq -1 \)
\(\displaystyle ax_{0} > n\)
We could go as far as state the following since y0 is negative
\(\displaystyle ax_{0}-b \geq n \)
since \(\displaystyle x_{0}\leq b-1\) we can write
\(\displaystyle a(b-1)-b \geq n \leftrightarrow ab-a-b \geq n \)
Now to my question: How do I continue to evaluate what numbers in the interval [1,ab-a-b] that may not be written on above form?
Please note that there is a difference between x, x0, y and y0. x and y are natural numbers whereas x0 is a nonnegative integer and y0 is an integer.
If and a and b are relatively prime natural numbers, how many natural numbers cannot be written on the form xa+yb where x and y are nonnegative integers?
My thoughts:
First of all, we want to know the highest number that cannot be written on above form. That will make it easier to then investigate the numbers between 1 and said number that cannot be written on above form.
Let n be a fixed integer (also negative) such that \(\displaystyle n = ax_{0}+by_{0}.\) If n lacks solutions for positive x0 and y0, assume that we want x0 to be as small as positive but nonetheless nonnegative. Then the following holds true:
\(\displaystyle 0 \leq x_{0} \leq b-1\)
\(\displaystyle y_{0} \leq -1 \)
\(\displaystyle ax_{0} > n\)
We could go as far as state the following since y0 is negative
\(\displaystyle ax_{0}-b \geq n \)
since \(\displaystyle x_{0}\leq b-1\) we can write
\(\displaystyle a(b-1)-b \geq n \leftrightarrow ab-a-b \geq n \)
Now to my question: How do I continue to evaluate what numbers in the interval [1,ab-a-b] that may not be written on above form?
Please note that there is a difference between x, x0, y and y0. x and y are natural numbers whereas x0 is a nonnegative integer and y0 is an integer.
Last edited: