4

I want to find all integer solutions of the equation $x = \tau(2^x – 1)$, where $\tau(n)$ is the number of divisors of n.

I know that 1, 2, 4, 6, 8, 16 and 32 are solutions, but I have no idea how to solve this equation in general.

Any help will be appreciated.

Bart Michels
  • 26,355
Chain Markov
  • 15,564
  • 6
  • 36
  • 116
  • For large $x$, it will become difficult and in some cases infeasible to find the number of divisors of $2^x-1$ – Peter Jun 06 '17 at 10:56
  • 1
    $x$ cannot be a prime, otherwise, $2^x-1$ would be a perfect power greater than $2$, but Catalan's conjecture (now a theorem) implies that this is impossible because $2^x-1$ and $2^x$ would be perfect powers with difference $1$ and the only pair besides $(0/1)$ is $(8/9)$ – Peter Jun 06 '17 at 11:34
  • If this is proveable, then you'll probably have to to prove that for large $x$ we have $x>\tau(2^x-1)$. The only thing I could prove is that $\tau(2^x-1)< 2^{x\log 2/\log 3}$ for $x\ge 1$, but sadly that isn't enough. – Mastrem Jun 06 '17 at 13:39
  • $x$ will always be even (if $x\ge 3$). It can only be odd if $2^x-1$ is perfect square of an odd number, but perfect squares of odd numbers are congruent to $1\pmod 8$ and not to $-1$ – Mastrem Jun 06 '17 at 13:56
  • Another idea: if $x=\tau(2^x-1)$ then $\Omega(x)\ge \omega(2^x-1)$ since $\Omega(\tau(n))\ge \omega(n)$ for all $n$. Maybe you can use this? – Mastrem Jun 06 '17 at 14:15
  • Solved it! finally. that took way too long. – Mastrem Jun 06 '17 at 20:32

1 Answers1

5

For all natural numbers $n$ and prime $p$, let $e_p(n)$ be the exponent of the highest power of $p$ dividing $n$. $\omega(n)$ is the amount of unique prime factors of $n$ and $\Omega(n)$ is the amount of prime factors of $n$ counting multiplicity.

Lemma 1 For all natural numbers $n\in\mathbb{N}$ and prime numbers $p$ we have: $$\omega(2^{p^{n}}-1)\ge n$$ Proof: We will prove this by induction. It is clear that $\omega(2^p-1)\ge 1$. Now, assume that $\omega(2^{p^{n-1}}-1)\ge n-1$. We'll now prove that $\omega(2^{p^n}-1)\ge n$. We know that: $$2^{p^n}-1=(2^{p^{n-1}}-1)(2^{p^{n-1}(p-1)}+2^{p^{n-1}(p-2)}+\ldots+1)$$ So it is enough to prove that: $$\gcd(2^{p^{n-1}}-1,2^{p^{n-1}(p-1)}+2^{p^{n-1}(p-2)}+\ldots+2^{p^{n-1}}+1)=1$$ We know that: $$2^{p^{n-1}(p-1)}+2^{p^{n-1}(p-2)}+\ldots+2^{p^{n-1}}+1\equiv p\pmod {2^{p^{n-1}}-1}$$ So: $$\gcd(2^{p^{n-1}}-1,2^{p^{n-1}(p-1)}+2^{p^{n-1}(p-2)}+\ldots+2^{p^{n-1}}+1)=\gcd(2^{p^{n-1}}-1,p)$$ now, it is enough to show that $2^{p^{n-1}}\not\equiv 1\pmod p$ and that is fairly obvious (hint: FLT). We are now done with the induction step, so we have proven by induction that $\omega(2^{p^n}-1)\ge n$. Q.E.D.

Lemma 2 For all natural numbers $n\in\mathbb{N}$ we have: $$\omega(2^n-1)\ge\Omega(n)$$ Proof: Write: For all prime powers $p^k\mid n$ we have $2^{p^k}-1\mid 2^n-1$. Now, take two primes $p\neq q$ and two integers $k$ and $\ell$. Let $d=\gcd(2^{p^k}-1,2^{q^{\ell}}-1)$. It is clear that there exists some $r$ such that for all natural $m$: $$d\mid 2^m-1\Longleftrightarrow r\mid m$$ Therefore $r\mid \gcd(p^k,q^\ell)=1$, so $d\mid 2^1-1=1$, so $d=1$. We conclude that $2^{p^k}-1$ and $2^{q^\ell}-1$ are coprime, so: $$\omega(2^n-1)\ge \sum_{p\mid n}\omega(2^{p^{e_p(n)}}-1)$$ It now follows directly from lemma 1 that $\omega(2^n-1)\ge\Omega(n)$. Q.E.D.

Lemma 3 For all natural numbers $n\in\Bbb{N}$, we have: $$\Omega(\tau(n))\ge \omega(n)$$ Proof: We can write: $$\tau(n)=\prod_{p\text{ prime}}(e_p(n)+1)$$ The amount of factors in the RHS not equal to $1$ is $\omega(n)$, but the amount of factors in the RHS not equal to $1$ is also less than or equal to $\Omega(\tau(n))$ and we are done. Q.E.D.


With these three lemmas we can finally take a look at your problem. Suppose that for some $n$ (I use $n$ instead of $x$) we have that: $$n=\tau(2^n-1)$$ So: $$\Omega(n)=\Omega(\tau(2^n-1))$$ By lemma $3$ we may conclude that: $$\Omega(n)\ge \omega(2^n-1)$$ But lemma $2$ says that $\omega(2^n-1)\ge \Omega(n)$, so we conclude that: $$\Omega(n)=\omega(2^n-1)$$


Now, we proceed with @barto's proof in the comments. A quick test reveals that $n=6$ is solution. For the rest of the proof, we may assume that $n\neq 6$. Zsigmody's theorem now gives: $$\Omega(n)=\omega(2^n-1)\ge\tau(n)-1$$ or, written differentely: $$\sum_{p\text{ prime}}e_p(n)+1\ge \prod_{p\text{ prime}}(e_p(n)+1)$$ Using induction, it can now be shown that there can only be one prime $p$ with $e_p(n)\neq 0$, so $n$ is a prime power, say $n=p^k$.

We now have: $$p^k=\tau(2^{p^k}-1)$$ For $p$ odd, we get that $2^{p^k}-1$ must be the square of an odd number. For $p^k>2$ this odd square is congruent to $-1$ modulo $8$, which is impossible. Testing reveals $n=1$ and $n=2$ are possible options. For the rest, we must have $p=2$. Then, for all positive integers $j<k$, we have: $$\frac{2^{p^{j+1}}-1}{2^{p^j}-1}=2^{2^j}+1$$ prime. However, $2^{2^5}+1$ is not prime, so $k\le 5$. This gives the candidate solutions: $$n\in\{1,2,4,8,16,32\}$$ and as it turns out those all work.

We conclude that the only solutions of $n=\tau(2^n-1)$ are: $$n\in\{1,2,4,6,8,16,32\}$$

Mastrem
  • 8,331
  • Maybe Zsigmondy's theorem makes the last part a bit shorter, because (up to some exceptions) it gives $\omega(2^n-1)\geq\tau(n)$ or $\tau(n)-1$ – Bart Michels Jun 06 '17 at 20:02
  • @barto I used the theorem to prove the last part. It's bedtime for me now, but if you like you can shorten my proof. I'll look at it myself tomorrow – Mastrem Jun 06 '17 at 20:31
  • I've reread the proof and realize there's a lot of typos. I'll edit them tomorrow as well. – Mastrem Jun 06 '17 at 20:44
  • In the last part there's a flaw in the beginning: $\sum_{i=1}^{p}2^{p^{k-1}(p-i)}=\frac{2^{p\cdot p^{k-1}}-1}{2^{p^{k-1}}-1}\neq\frac{2^{p(p^{k-1}-1)}-1}{2^{p^{k-1}}-1}$ – Bart Michels Jun 07 '17 at 09:00
  • Zsigmondy's/Bang's theorem gives $\omega(2^n-1)\geq\tau(n)-1$ unless $n=6$. After Lemma 3 we can then say $$\Omega(n) = \Omega(\tau(2^n-1))\geq\omega(2^n-1)\geq\tau(n)-1$$ So $\Omega(n)=\tau(n)-1$: if $n=\prod p_i^{e_i}$ we have $\sum e_i\geq\prod(e_i+1)-1$, so $n$ is a prime power, say $n=p^k$. From $\Omega(n)=\omega(2^n-1)$, in the proof of Lemma 1 we see that $\frac{2^{p^{j+1}}-1}{2^{p^j}-1}$ are distinct primes for $j<k$, so $\tau(2^n-1)=2^k$, so $p=2$. Then $$\frac{2^{p^{j+1}}-1}{2^{p^j}-1}=2^{2^j}+1$$ and because $2^{2^5}+1$ is not a Fermat prime we have $n=2^k$ with $k\leq 4$. – Bart Michels Jun 07 '17 at 09:11
  • As it happens, the exception $n=6$ to Zsigmondy is a solution, so the solutions are $n=1,2,4,8,16$ and $6$. It's nice to see how the solutions come from two kinds of exceptional numbers: Fermat primes and the Zsigmondy problem. – Bart Michels Jun 07 '17 at 09:12
  • @barto I implemented your proof, so I think the thing is complete now. – Mastrem Jun 07 '17 at 09:37
  • Actually $32$ is not a solution because $2^{32}+1$ has $2$ prime factors. The OP made a mistake here.

    It's possible that there's a way to avoid Zsigmondy (whose proof is quite involved, but elementary), because we only used it to deduce from $\Omega(n)=\omega(2^n-1)$ that $n$ is a prime power, so a weaker lower bound on $\omega(2^n-1)$ may suffice.

    – Bart Michels Jun 07 '17 at 09:40
  • @barto but $2^{32}-1$ has five, hasn't it? – Mastrem Jun 07 '17 at 09:43
  • Yes, my mistake. – Bart Michels Jun 07 '17 at 09:43