Skip to main content
added 5 characters in body
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63

m must be less than $\log N$. If there is a solution, $N$ has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices $c$ dividing m, and thus the sizes of the factors are close to $x^\{phi(c)}$$x^{\phi(c)}$ in size, so one can't have just any product of factors.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x$x$ below k$k$ need to be tested (e.g. $x$ can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like $3k/2$ possibilities for $x$.

Even further, one can show that for $m$ fixed, $N$ must have certain residues mod small primes, and so $m$ can be eliminated from further testing. The actual number of solutions looks more like it is bounded by $l$$k$, gainagain much less than the number of bits needed to express $N$ in binary.

m must be less than $\log N$. If there is a solution, $N$ has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices $c$ dividing m, and thus the sizes of the factors are close to $x^\{phi(c)}$ in size, so one can't have just any product of factors.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x below k need to be tested (e.g. $x$ can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like $3k/2$ possibilities for $x$.

Even further, one can show that for $m$ fixed, $N$ must have certain residues mod small primes, and so $m$ can be eliminated from further testing. The actual number of solutions looks more like it is bounded by $l$, gain much less than the number of bits needed to express $N$ in binary.

m must be less than $\log N$. If there is a solution, $N$ has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices $c$ dividing m, and thus the sizes of the factors are close to $x^{\phi(c)}$ in size, so one can't have just any product of factors.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of $x$ below $k$ need to be tested (e.g. $x$ can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like $3k/2$ possibilities for $x$.

Even further, one can show that for $m$ fixed, $N$ must have certain residues mod small primes, and so $m$ can be eliminated from further testing. The actual number of solutions looks more like it is bounded by $k$, again much less than the number of bits needed to express $N$ in binary.

added 79 characters in body
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63

m must be less than log N$\log N$. If there is a solution, N$N$ has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices c$c$ dividing m, and thus the sizes of the factors are close to x^phi(c)$x^\{phi(c)}$ in size, so one can't have just any product of factors.

We have $m=2$ is always a solution with $x = N-1$, so if $x$ must be a prime power then so is $N-1$. For $N$ with few factors, one can rule out $m$ with many divisors. Large prime factors of $ N$ must exist when $m$ is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of N$N$ greater than log N$\log N$, their difference can give some restrictions on the possible values of m$m$.

The first point is that we cannot have $m$ and $x$ both larger than $k+2$. So immediately we have a bound of about $2k$ possible solutions, half coming from $x$ going from 2 up to $k+1$, and the other half from $m$ going from $k+1$ down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with $x=2$, find the corresponding $m$ if any, and then increase $x$ by 1 until $x$ is larger than $m$ Then the search switches to taking $m$th roots and decrementing $m$ by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number isof solutions given $N$, and a hint of how to find them. For N$N$ not too small (N$N$ greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write N$N$ in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x below k need to be tested (e.g. x$x$ can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like 3k/2$3k/2$ possibilities for x$x$.

Also, if one knows enough factors of N$N$, one can speak to the possibilities for m$m$. Namely Namely, a prime divisor of n$N$ must be one more than a multiple of a divisor of m$m$. Further, if N$N$ is prime or has few factors, then m$m$ cannot have many factors, and thus one is limited to look at prime values for m$m$, or non smooth values of m,$m$ (as noted above this update) which can cut out a third of the checks needed roughly.

Even further, one can show that for m$m$ fixed, N$N$ must have certain residues mod small primes, and so m$m$ can be eliminated from further testing. The actual number of solutions looks more like it is bounded by k$l$, againgain much less than the number of bits needed to express N$N$ in binary.

m must be less than log N. If there is a solution, N has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices c dividing m, and thus the sizes of the factors are close to x^phi(c) in size, so one can't have just any product of factors.

We have $m=2$ is always a solution with $x = N-1$, so if $x$ must be a prime power then so is $N-1$. For $N$ with few factors, one can rule out $m$ with many divisors. Large prime factors of $ N$ must exist when $m$ is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of N greater than log N, their difference can give some restrictions on the possible values of m.

The first point is that we cannot have $m$ and $x$ both larger than $k+2$. So immediately we have a bound of about $2k$ possible solutions, half coming from $x$ going from 2 up to $k+1$, and the other half from $m$ going from $k+1$ down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with $x=2$, find the corresponding $m$ if any, and then increase $x$ by 1 until $x$ is larger than $m$ Then the search switches to taking $m$th roots and decrementing $m$ by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number is solutions given $N$, and a hint of how to find them. For N not too small (N greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write N in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x below k need to be tested (e.g. x can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like 3k/2 possibilities for x.

Also, if one knows enough factors of N, one can speak to the possibilities for m. Namely, a prime divisor of n must be one more than a multiple of a divisor of m. Further, if N is prime or has few factors, then m cannot have many factors, and thus one is limited to look at prime values for m, or non smooth values of m, which can cut out a third of the checks needed roughly.

Even further, one can show that for m fixed, N must have certain residues mod small primes, and so m can be eliminated from further testing. The actual number of solutions looks more like it is bounded by k, again much less than the number of bits needed to express N in binary.

m must be less than $\log N$. If there is a solution, $N$ has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices $c$ dividing m, and thus the sizes of the factors are close to $x^\{phi(c)}$ in size, so one can't have just any product of factors.

We have $m=2$ is always a solution with $x = N-1$, so if $x$ must be a prime power then so is $N-1$. For $N$ with few factors, one can rule out $m$ with many divisors. Large prime factors of $ N$ must exist when $m$ is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of $N$ greater than $\log N$, their difference can give some restrictions on the possible values of $m$.

The first point is that we cannot have $m$ and $x$ both larger than $k+2$. So immediately we have a bound of about $2k$ possible solutions, half coming from $x$ going from 2 up to $k+1$, and the other half from $m$ going from $k+1$ down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with $x=2$, find the corresponding $m$ if any, and then increase $x$ by 1 until $x$ is larger than $m$ Then the search switches to taking $m$th roots and decrementing $m$ by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number of solutions given $N$, and a hint of how to find them. For $N$ not too small ($N$ greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write $N$ in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x below k need to be tested (e.g. $x$ can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like $3k/2$ possibilities for $x$.

Also, if one knows enough factors of $N$, one can speak to the possibilities for $m$. Namely, a prime divisor of $N$ must be one more than a multiple of a divisor of $m$. Further, if $N$ is prime or has few factors, then $m$ cannot have many factors, and thus one is limited to look at prime values for $m$, or non smooth values of $m$ (as noted above this update) which can cut out a third of the checks needed roughly.

Even further, one can show that for $m$ fixed, $N$ must have certain residues mod small primes, and so $m$ can be eliminated from further testing. The actual number of solutions looks more like it is bounded by $l$, gain much less than the number of bits needed to express $N$ in binary.

added 2291 characters in body
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63

Some simple observations, which are independent of x or y being prime powers.

m must be less than log N. If there is a solution, N has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices c dividing m, and thus the sizes of the factors are close to x^phi(c) in size, so one can't have just any product of factors.

We have m=2$m=2$ is always a solution with x = N-1$x = N-1$, so if x$x$ must be a prime power then so is N-1$N-1$. For N$N$ with few factors, one can rule out m$m$ with many divisors. Large prime factors of N$ N$ must exist when m$m$ is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of N greater than log N, their difference can give some restrictions on the possible values of m.

Ribenboim's book on Catalan's conjecture will have related material, and possibly a good answer to your question.

Update 2018.10.10

There is a simple analysis which points at better than $\log N / \log\log N$ upper bound on the number of pairs $(x,m)$ satisfying the equation. I will use $k$ to express this upper bound, where $k$ is the largest integer satisfying $ k^k \leq N$. A more careful computation might suggest using $k+1$, but I will not take such care for reasons that will appear.

The first point is that we cannot have m$m$ and x$x$ both larger than k+2$k+2$. SoSo immediately we have a bound of about 2k +2$2k$ possible solutions, half coming from x$x$ going from 2 up to k+1$k+1$, and the other half from m$m$ going from k+1$k+1$ down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with x =2$x=2$, find the corresponding m$m$ if any, and then increase x$x$ by 1 until x$x$ is larger than m. Then$m$ Then the search switches to taking mth$m$th roots and decrementing m$m$ by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number is solutions given N$N$, and a hint of how to find them. For N not too small (N greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write N in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers j$j$ and x$x$ with x$x$ part of a potential solution. This means x$x$ is a unitary divisor of N-1$N-1$, which means less than half the values of x below k need to be tested (e.g. x can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like 3k/2 possibilities for x.

Also, if one knows enough factors of N, one can speak to the possibilities for m. Namely, a prime divisor of n must be one more than a multiple of a divisor of m. Further, if N is prime or has few factors, then m cannot have many factors, and thus one is limited to look at prime values for m, or non smooth values of m, which can cut out a third of the checks needed roughly.

Even further, one can show that for m fixed, N must have certain residues mod small primes, and so m can be eliminated from further testing. The actual number of solutions looks more like it is bounded by k, again much less than the number of bits needed to express N in binary.

End Update 2018.10.10

Gerhard "Playing Around With Prime Numbers" Paseman, 2018.10.05.

Some simple observations, which are independent of x or y being prime powers.

m must be less than log N. If there is a solution, N has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices c dividing m, and thus the sizes of the factors are close to x^phi(c) in size, so one can't have just any product of factors.

We have m=2 is always a solution with x = N-1, so if x must be a prime power then so is N-1. For N with few factors, one can rule out m with many divisors. Large prime factors of N must exist when m is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of N greater than log N, their difference can give some restrictions on the possible values of m.

Ribenboim's book on Catalan's conjecture will have related material, and possibly a good answer to your question.

Update 2018.10.10

There is a simple analysis which points at better than $\log N / \log\log N$ upper bound on the number of pairs $(x,m)$ satisfying the equation. I will use $k$ to express this upper bound, where $k$ is the largest integer satisfying $ k^k \leq N$. A more careful computation might suggest using $k+1$, but I will not take such care for reasons that will appear.

The first point is that we cannot have m and x both larger than k+2. So immediately we have a bound of about 2k +2 possible solutions, half coming from x going from 2 up to k+1, and the other half from m going from k+1 down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with x =2, find the corresponding m if any, and then increase x by 1 until x is larger than m. Then the search switches to taking mth roots and decrementing m by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number is solutions given N, and a hint of how to find them. For N not too small (N greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write N in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers j and x with x part of a potential solution. This means x is a unitary divisor of N-1, which means less than half the values of x below k need to be tested (e.g. x can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like 3k/2 possibilities for x.

Also, if one knows enough factors of N, one can speak to the possibilities for m. Namely, a prime divisor of n must be one more than a multiple of a divisor of m. Further, if N is prime or has few factors, then m cannot have many factors, and thus one is limited to look at prime values for m, or non smooth values of m, which can cut out a third of the checks needed roughly.

Even further, one can show that for m fixed, N must have certain residues mod small primes, and so m can be eliminated from further testing. The actual number of solutions looks more like it is bounded by k, again much less than the number of bits needed to express N in binary.

End Update 2018.10.10

Gerhard "Playing Around With Prime Numbers" Paseman, 2018.10.05.

Some simple observations, which are independent of x or y being prime powers.

m must be less than log N. If there is a solution, N has to factor into (about) d(m) factors which are values of cyclotomic polynomials of indices c dividing m, and thus the sizes of the factors are close to x^phi(c) in size, so one can't have just any product of factors.

We have $m=2$ is always a solution with $x = N-1$, so if $x$ must be a prime power then so is $N-1$. For $N$ with few factors, one can rule out $m$ with many divisors. Large prime factors of $ N$ must exist when $m$ is greater than 6, and these primes must be 1 mod m, so if there are two of the prime factors of N greater than log N, their difference can give some restrictions on the possible values of m.

Ribenboim's book on Catalan's conjecture will have related material, and possibly a good answer to your question.

Update 2018.10.10

There is a simple analysis which points at better than $\log N / \log\log N$ upper bound on the number of pairs $(x,m)$ satisfying the equation. I will use $k$ to express this upper bound, where $k$ is the largest integer satisfying $ k^k \leq N$. A more careful computation might suggest using $k+1$, but I will not take such care for reasons that will appear.

The first point is that we cannot have $m$ and $x$ both larger than $k+2$. So immediately we have a bound of about $2k$ possible solutions, half coming from $x$ going from 2 up to $k+1$, and the other half from $m$ going from $k+1$ down to 3. (There is always a solution with m=2, which we ignore.) Indeed, a naive computer search could start with $x=2$, find the corresponding $m$ if any, and then increase $x$ by 1 until $x$ is larger than $m$ Then the search switches to taking $m$th roots and decrementing $m$ by 1 to test for further solutions. With a possible error of a small constant, this gives an easily proved upper bound of the number is solutions given $N$, and a hint of how to find them. For N not too small (N greater than 100, maybe?), this occurs in fewer tests than the number of bits needed to write N in binary.

However, it gets better. We have $(N -1) = x(1+jx)$ for some integers $j$ and $x$ with $x$ part of a potential solution. This means $x$ is a unitary divisor of $N-1$, which means less than half the values of x below k need to be tested (e.g. x can be 2 or a power of two, but not both, and similarly with odd multiples of two or the power), so really there are more like 3k/2 possibilities for x.

Also, if one knows enough factors of N, one can speak to the possibilities for m. Namely, a prime divisor of n must be one more than a multiple of a divisor of m. Further, if N is prime or has few factors, then m cannot have many factors, and thus one is limited to look at prime values for m, or non smooth values of m, which can cut out a third of the checks needed roughly.

Even further, one can show that for m fixed, N must have certain residues mod small primes, and so m can be eliminated from further testing. The actual number of solutions looks more like it is bounded by k, again much less than the number of bits needed to express N in binary.

End Update 2018.10.10

Gerhard "Playing Around With Prime Numbers" Paseman, 2018.10.05.

added 2291 characters in body
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63
Loading
Post Undeleted by Gerhard Paseman
added 529 characters in body
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63
Loading
Post Deleted by Gerhard Paseman
Source Link
Gerhard Paseman
  • 13k
  • 3
  • 32
  • 63
Loading