Find all non-negative integers (x,y)

  • MHB
  • Thread starter anemone
  • Start date
  • Tags
    Integers
In summary, "non-negative integers" refer to whole numbers that are equal to or greater than zero. To find all non-negative integers for a given equation, you would need to solve the equation by systematically substituting different values for x and y. Typically, there are no restrictions on the values of x and y, but it is important to pay attention to any given constraints. There can be multiple solutions for this type of problem, and there is no specific method for finding all non-negative integers, but there are various techniques that can be used.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
Find all paris $(x,\,y)$ of non-negative integers for which $x^2+2\cdot 3^y=x(2^{y+1}-1)$.
 
Mathematics news on Phys.org
  • #2
Solution of other:
For fixed values of $y$, the original equation is a simple quadratic equation in $x$. For $y\le 5$, the solutions are listed below:

CaseFunctionDiscriminantInteger Roots
$n=0$$x^2-x+2=0$$-7$None
$n=1$$x^2-3x+6=0$$-15$None
$n=2$$x^2-7x+18=0$$-23$None
$n=3$$x^2-15x+54=0$$9$$x=6$ or $x=9$
$n=4$$x^2-31x+162=0$$313$None
$n=5$$x^2-63x+486=0$$2025$$x=9$ or $x=54$

We prove that there is no solution for $y\ge 6$.

Suppose that $(x,\,y)$ satisfies the original equation and $y\ge 6$. Since $x|2\cdot 3^y=x(2^{y+1}-1)-x^2$, we have $x=3^k$ with some $0\le k\le y$ or $x=2\cdot 3^k$ with some $0\le k \le y$.

In the first case, let $m=y-k$, then $2^{y+1}-1=x+\dfrac{2\cdot 3^y}{x}=3^k+3\cdot 3^m$

In the second case, let $k=y-m$, then $2^{y+1}-1=x+\dfrac{2\cdot 3^y}{x}=3^k+3\cdot 3^m$

Hence in both cases we need to find the non negative integer solutions of $3^k+2\cdot 3^m=2^{y+1}-1$, $m+k=y$. (*)

Next we prove bounds for $m,\,k$. From (*), we get

$3^k<2^{y+1}=8^{\tiny\dfrac{y+1}{3}}<9^{\tiny\dfrac{y+1}{3}}=3^{\tiny\dfrac{2(y+1)}{3}}$

and

$2\cdot 3^{m}<2^{y+1}=2\cdot 8^{\tiny\dfrac{y}{3}}<2\cdot 9^{\tiny\dfrac{y}{3}}=2\cdot 3^{\tiny\dfrac{2y}{3}}<2\cdot 3^{\tiny\dfrac{2(y+1)}{3}}$

so $m,\,k<\dfrac{2(y+1)}{3}$.

Combining these inequalities with $m+k=y$, we obtain

$\dfrac{y-2}{3}<m,\,k<\dfrac{2(y+1)}{3}$ (**)

Now, let $h=\text{min}(p,\,q)$. By (**), we have $h>\dfrac{y-2}{3}$, in particular, we have $h>1$. On the LHS of (*), both terms are divisible by $3^h$, therefore, $9|3^h|2^{y+1}-1$. It is easy to check that $ord_g(2)=6$, so $9|2^{y+1}-1$ iff $6|y+1$. Therefore, $y+1=6r$ for some positive integer $r$, adn we can write

$2^{y+1}-1=4^{3r}-1=(4^{2r}+4^r+1)(2^r-1)(2^r+1)$

Notice that the factor $4^{2r}+4^r+1=(4^r-1)^2+3\cdot 4^r$ is divisible by 3, but it is never divisible by 9. The other two factors in $2^{y+1}-1=4^{3r}-1=(4^{2r}+4^r+1)(2^r-1)(2^r+1)$, i.e.e $2^r-1$ and $2^r+1$ are coprime, both are odd and their difference is 2. Since the whole product is divisible by $3^h$, we have either $3^{h-1}|2^r-1$ or $3^{h-1}|2^r+1$.

In any case, we have

$3^{h-1}\le 2^r+1\le 3^r=3^{\tiny\dfrac{y+1}{6}}$

$\dfrac{y-2}{3}-1<h-1\le \dfrac{y+1}{6}$

$n<11$

But this is impossible since we assumed $y\ge 6$ and we proved $6|y+1$.
 
  • #3
anemone said:
Solution of other:
For fixed values of $y$, the original equation is a simple quadratic equation in $x$. For $y\le 5$, the solutions are listed below:

CaseFunctionDiscriminantInteger Roots
$n=0$$x^2-x+2=0$$-7$None
$n=1$$x^2-3x+6=0$$-15$None
$n=2$$x^2-7x+18=0$$-23$None
$n=3$$x^2-15x+54=0$$9$$x=6$ or $x=9$
$n=4$$x^2-31x+162=0$$313$None
$n=5$$x^2-63x+486=0$$2025$$x=9$ or $x=54$

We prove that there is no solution for $y\ge 6$.

Suppose that $(x,\,y)$ satisfies the original equation and $y\ge 6$. Since $x|2\cdot 3^y=x(2^{y+1}-1)-x^2$, we have $x=3^k$ with some $0\le k\le y$ or $x=2\cdot 3^k$ with some $0\le k \le y$.

In the first case, let $m=y-k$, then $2^{y+1}-1=x+\dfrac{2\cdot 3^y}{x}=3^k+3\cdot 3^m$

In the second case, let $k=y-m$, then $2^{y+1}-1=x+\dfrac{2\cdot 3^y}{x}=3^k+3\cdot 3^m$

Hence in both cases we need to find the non negative integer solutions of $3^k+2\cdot 3^m=2^{y+1}-1$, $m+k=y$. (*)

Next we prove bounds for $m,\,k$. From (*), we get

$3^k<2^{y+1}=8^{\tiny\dfrac{y+1}{3}}<9^{\tiny\dfrac{y+1}{3}}=3^{\tiny\dfrac{2(y+1)}{3}}$

and

$2\cdot 3^{m}<2^{y+1}=2\cdot 8^{\tiny\dfrac{y}{3}}<2\cdot 9^{\tiny\dfrac{y}{3}}=2\cdot 3^{\tiny\dfrac{2y}{3}}<2\cdot 3^{\tiny\dfrac{2(y+1)}{3}}$

so $m,\,k<\dfrac{2(y+1)}{3}$.

Combining these inequalities with $m+k=y$, we obtain

$\dfrac{y-2}{3}<m,\,k<\dfrac{2(y+1)}{3}$ (**)

Now, let $h=\text{min}(p,\,q)$. By (**), we have $h>\dfrac{y-2}{3}$, in particular, we have $h>1$. On the LHS of (*), both terms are divisible by $3^h$, therefore, $9|3^h|2^{y+1}-1$. It is easy to check that $ord_g(2)=6$, so $9|2^{y+1}-1$ iff $6|y+1$. Therefore, $y+1=6r$ for some positive integer $r$, adn we can write

$2^{y+1}-1=4^{3r}-1=(4^{2r}+4^r+1)(2^r-1)(2^r+1)$

Notice that the factor $4^{2r}+4^r+1=(4^r-1)^2+3\cdot 4^r$ is divisible by 3, but it is never divisible by 9. The other two factors in $2^{y+1}-1=4^{3r}-1=(4^{2r}+4^r+1)(2^r-1)(2^r+1)$, i.e.e $2^r-1$ and $2^r+1$ are coprime, both are odd and their difference is 2. Since the whole product is divisible by $3^h$, we have either $3^{h-1}|2^r-1$ or $3^{h-1}|2^r+1$.

In any case, we have

$3^{h-1}\le 2^r+1\le 3^r=3^{\tiny\dfrac{y+1}{6}}$

$\dfrac{y-2}{3}-1<h-1\le \dfrac{y+1}{6}$

$n<11$

But this is impossible since we assumed $y\ge 6$ and we proved $6|y+1$.

good solution we can simplify as below

we can convert $x^2+2\cdot 3^y=x(2^{y+1}-1)$

quadratic in x

$x^2-x(2^{y+1}-1) + 2\cdot 3^y=0$

now discriminant should be greater than zero
$(2^{y+1}-1)^2- 4\cdot 2\cdot 3^y\ge 0$

as y increase 1st term almost doubles and 2 term triples and we get upper limit for y as 5
 

FAQ: Find all non-negative integers (x,y)

What does "non-negative integers" mean?

"Non-negative integers" refer to all whole numbers that are equal to or greater than zero. These include numbers such as 0, 1, 2, 3, and so on.

How do I find all non-negative integers for a given equation?

In order to find all non-negative integers for a given equation, you would need to solve the equation by systematically substituting different values for x and y until you find all possible solutions that result in non-negative integers.

Are there any restrictions on the values of x and y in this problem?

Typically, there are no restrictions on the values of x and y in this type of problem. However, it is important to pay attention to any given constraints or conditions that may be specified in the problem.

Can there be more than one solution for this type of problem?

Yes, there can be multiple solutions for this type of problem. Depending on the given equation, there may be an infinite number of solutions or a finite set of solutions.

Is there a specific method for finding all non-negative integers?

There is no specific method for finding all non-negative integers, but there are certain techniques that can be used such as trial and error, graphing, or using algebraic equations. The best approach will depend on the given problem and individual preference.

Similar threads

Back
Top