While researching the topic of Descartes numbers, I came across the following seemingly related subproblem:
PROBLEM: Determine conditions on $n$ such that $$\frac{{10}^n - 1}{9}$$ is squarefree.
MY ATTEMPT
Set $$m := \frac{{10}^n - 1}{9}.$$
(Note that $m$ is called a repunit. Searching for the keyword "squarefree" in this Wikipedia page did not return any results.)
I noticed that $m$ is squarefree for $n = 1$.
So, let $n > 1$. I also observed that, for $n \geq 2$, we actually have $$m \equiv 3 \pmod 4,$$ so that $m$ is not a square.
Next, I considered the prime factorizations of $m$ for the first dozen $n \neq 1$: $$\begin{array}{c|c|c|} \text{Value of } n &\text{Repunit } m & \text{Prime Factorization of } m \\ \hline 2 & 11 & 11 \\ \hline 3 & 111 & 3 \times 37 \\ \hline 4 & 1111 & 11 \times 101 \\ \hline 5 & 11111 & 41 \times 271 \\ \hline 6 & 111111 & 3 \times 7 \times 11 \times 13 \times 37 \\ \hline 7 &1111111 & 239 \times 4649 \\ \hline 8 & 11111111 & 11 \times 73 \times 101 \times 137 \\ \hline 9 & 111111111 & 3^2 \times 37 \times 333667 \\ \hline 10 & 1111111111 & 11 \times 41 \times 271 \times 9091 \\ \hline 11 & 11111111111 & 21649 \times 513239 \\ \hline 12 & 111111111111 & 3 \times 7 \times 11 \times 13 \times 37 \times 101 \times 9901 \\ \hline 13 & 1111111111111 & 53 \times 79 \times 265371653 \\ \hline \end{array}$$
From this initial data sample, I predict the truth of the following conjectures:
- CONJECTURE 1: If $n \equiv 0 \pmod 6$, then $m$ is squarefree.
- CONJECTURE 2: If $n \equiv 0 \pmod 6$, then $\bigg(3 \times 7 \times {11} \times {13} \times {37}\bigg) \mid m$.
- CONJECTURE 3: If $n \equiv 0 \pmod 3$, then $\bigg(3 \times {37}\bigg) \mid m$.
I skimmed through OEIS sequence A002275 and did not find any references to these conjectures.
RESOLVING CONJECTURE 1
I searched for counterexamples to Conjecture 1 using Pari-GP in Sage Cell Server, I got the following output in the range $n \leq 50$:
18[3, 2; 7, 1; 11, 1; 13, 1; 19, 1; 37, 1; 52579, 1; 333667, 1]
36[3, 2; 7, 1; 11, 1; 13, 1; 19, 1; 37, 1; 101, 1; 9901, 1; 52579, 1; 333667, 1; 999999000001, 1]
42[3, 1; 7, 2; 11, 1; 13, 1; 37, 1; 43, 1; 127, 1; 239, 1; 1933, 1; 2689, 1; 4649, 1; 459691, 1; 909091, 1; 10838689, 1]
This output means that
- $\dfrac{{10}^{18} - 1}{9}$ is divisible by $3^2$.
- $\dfrac{{10}^{36} - 1}{9}$ is divisible by $3^2$.
- $\dfrac{{10}^{42} - 1}{9}$ is divisible by $7^2$.
I therefore conclude that Conjecture 1 is false.
MY ATTEMPT TO RESOLVE CONJECTURE 2
I searched for counterexamples to Conjecture 2 using Pari-GP in Sage Cell Server, I got a blank output in the range $n \leq {10}^5$.
The Pari-GP interpreter of Sage Cell Server crashes as soon as a search limit of ${10}^6$ is specified.
This gives further computational evidence for Conjecture 2.
MY ATTEMPT TO RESOLVE CONJECTURE 3
I searched for counterexamples to Conjecture 3 using Pari-GP in Sage Cell Server, I got a blank output in the range $n \leq {10}^5$.
The Pari-GP interpreter of Sage Cell Server crashes as soon as a search limit of ${10}^6$ is specified.
This gives further computational evidence for Conjecture 3.
Alas, this where I get stuck, as I do not currently know how to prove Conjectures 2 and 3.
INQUIRY
Given that Conjecture 1 is false, do you know of or can you prove a(n) (unconditional) congruence condition on $n$ which guarantees that the repunit $m$ is squarefree?