| | @@ -0,0 +1,177 @@ |
| 1 | +# Near-perfect cyclic Sidon sets at prime modulus |
| 2 | + |
| 3 | +Let \(k\ge4\), let \(n=k(k-1)+3\) be prime, and put \(t=k-1\). A |
| 4 | +near-perfect cyclic Sidon set has \(k\) marks in \(\mathbb Z_n\) and uses |
| 5 | +every nonzero ordered difference except one pair \(\pm d\) exactly once. |
| 6 | +The [parent notes](../NOTES.md) prove that if such a set exists, then |
| 7 | +\(v_q(F_n(t))\) is even for every prime \(q\equiv-1\pmod n\), where |
| 8 | +\[ |
| 9 | + F_n(T)=1+\sum_{i=1}^{(n-1)/2}S_i(T),\qquad S_0=2,\quad S_1=T,\quad |
| 10 | + S_{i+1}=T S_i-S_{i-1}. |
| 11 | +\] |
| 12 | +Here every nonzero \(d\) is a unit, so one odd valuation excludes all |
| 13 | +missing pairs. The earlier run covered \(q\le200000\). Below are two |
| 14 | +paper proofs and exact finite computations. |
| 15 | + |
| 16 | +## Theorem 1. A logarithmic-time valuation test |
| 17 | + |
| 18 | +For a prime \(q\equiv-1\pmod n\) and positive integer \(r\), let \(x\) |
| 19 | +denote the class of \(X\) in |
| 20 | +\[ |
| 21 | + R_r=(\mathbb Z/q^r\mathbb Z)[X]/(X^2-tX+1). |
| 22 | +\] |
| 23 | +Then \(q^r\mid F_n(t)\) if and only if \(x^n=1\) in \(R_r\). |
| 24 | + |
| 25 | +**Proof.** The quadratic gives \(x^{-1}=t-x\), so induction gives |
| 26 | +\(S_i(t)=x^i+x^{-i}\). For \(h=(n-1)/2\), multiplication by \(x^h\) |
| 27 | +then gives \(x^h F_n(t)=1+x+\cdots+x^{n-1}\), and hence |
| 28 | +\[ |
| 29 | + (x-1)x^h F_n(t)=x^n-1. |
| 30 | +\] |
| 31 | +The factor \(x-1\) is a unit because \((x-1)(x+1-t)=t-2=k-3\) and |
| 32 | +\(q\ge n-1>k-3>0\). The scalar ring injects into \(R_r\) by monicity |
| 33 | +of the quadratic. This proves the equivalence. The first failed |
| 34 | +test at \(r\) returns valuation \(r-1\). The tests terminate since |
| 35 | +\(t\ge3\) gives \(S_1>S_0>0\) and |
| 36 | +\(S_{i+1}-S_i=(t-2)S_i+(S_i-S_{i-1})>0\) by induction, so |
| 37 | +\(F_n(t)>0\). ∎ |
| 38 | + |
| 39 | +The code squares a residue \(a+bx\) by reducing \(x^2=tx-1\) and |
| 40 | +conditionally multiplies by \(x\) for each binary digit of \(n\). |
| 41 | +This takes \(O(\log n)\) ring operations per modulus. Candidate primes |
| 42 | +are sieved in blocks in the progression \(2nj-1\), \(j\ge1\). |
| 43 | +Every odd prime congruent to \(-1\) modulo \(n\) lies in this progression, |
| 44 | +and \(n\ge15\) rules out \(q=2\). For each trial prime \(p\nmid 2n\), |
| 45 | +the sieve strikes indices \(j\equiv (2n)^{-1}\pmod p\) from the point |
| 46 | +where \(2nj-1\ge p^2\). Every composite in the progression is struck |
| 47 | +by its smallest prime factor, which is coprime to \(2n\) and is at |
| 48 | +most the square root of the composite. The independent verifier |
| 49 | +checks each reported valuation using trial division and the original |
| 50 | +linear trace recurrence modulo \(q^{v+1}\). |
| 51 | + |
| 52 | +## Theorem 2. The odd-valuation primes come in even numbers |
| 53 | + |
| 54 | +The number of distinct primes \(q\equiv-1\pmod n\) for which |
| 55 | +\(v_q(F_n(k-1))\) is odd is even. |
| 56 | + |
| 57 | +**Proof.** In characteristic \(n\), |
| 58 | +\[ |
| 59 | + X^h F_n(X+X^{-1})=1+X+\cdots+X^{n-1} |
| 60 | + =(X-1)^{n-1}=X^h(X+X^{-1}-2)^h . |
| 61 | +\] |
| 62 | +Substitution \(T\mapsto X+X^{-1}\) is injective on polynomials over |
| 63 | +\(\mathbb F_n\), since the top power of \(X\) in a substituted |
| 64 | +polynomial retains the leading coefficient. Thus |
| 65 | +\(F_n(k-1)\equiv(k-3)^h\equiv(k^2)^h\equiv1\pmod n\). |
| 66 | +In particular \(n\) does not divide \(F_n(k-1)\). |
| 67 | + |
| 68 | +For any prime divisor \(q\) of \(F_n(k-1)\), take a root \(x\) of |
| 69 | +\(X^2-tX+1\) in \(\mathbb F_{q^2}\). The same trace identity gives |
| 70 | +\(1+x+\cdots+x^{n-1}=0\). Since \(q\ne n\), this implies \(x\ne1\), |
| 71 | +and \(x\) has order \(n\). Frobenius either fixes \(x\) or exchanges |
| 72 | +it with the other root \(x^{-1}\). Hence \(q\equiv1\) or \(-1\) |
| 73 | +modulo \(n\). Reducing the prime factorization of the positive integer |
| 74 | +\(F_n(k-1)\) modulo \(n\) gives a product of signs equal to 1, which |
| 75 | +proves the assertion. ∎ |
| 76 | + |
| 77 | +One odd-valuation prime therefore implies a second distinct one, |
| 78 | +even if the search finds only the first. The aggregate congruence |
| 79 | +modulo \(n\) alone cannot establish an exclusion, since it is always |
| 80 | +satisfied at these parameters. |
| 81 | + |
| 82 | +**Corollary.** A positive divisor \(B\) of \(F_n(k-1)\) with |
| 83 | +\(B\equiv-1\pmod n\) and \(\gcd(B,F_n(k-1)/B)=1\) excludes the set. |
| 84 | +Indeed, the prime factorization of \(B\) has at least one prime |
| 85 | +\(q\equiv-1\pmod n\) with odd exponent, and coprimality means this |
| 86 | +is its full exponent in \(F_n(k-1)\). This certificate can use a |
| 87 | +composite divisor and can be checked without factoring it. |
| 88 | + |
| 89 | +## Finite exclusions |
| 90 | + |
| 91 | +For prime \(n\) with \(6\le k\le1000\), the run through \(q=10^9\) |
| 92 | +finds 16 exclusions by the parent theorem. It reproduces the |
| 93 | +certificates at \(k=8,26,131\) and adds the following relative to the |
| 94 | +earlier run. The entries are in [the search log](search_6_1000.log). |
| 95 | +Every listed valuation is exactly 1. The verifier checks primality |
| 96 | +of \(n\) and \(q\), the congruence, and the exact valuation. The |
| 97 | +obstruction in the parent notes then proves nonexistence for each row. |
| 98 | + |
| 99 | +| \(k\) | \(n\) | \(q\) | |
| 100 | +|---:|---:|---:| |
| 101 | +| 140 | 19463 | 311407 | |
| 102 | +| 221 | 48623 | 10988797 | |
| 103 | +| 263 | 68909 | 689089 | |
| 104 | +| 371 | 137273 | 434606317 | |
| 105 | +| 383 | 146309 | 1463089 | |
| 106 | +| 473 | 223259 | 22772417 | |
| 107 | +| 530 | 280373 | 1682237 | |
| 108 | +| 575 | 330053 | 3300529 | |
| 109 | +| 593 | 351059 | 2106353 | |
| 110 | +| 635 | 402593 | 188413523 | |
| 111 | +| 665 | 441563 | 1766251 | |
| 112 | +| 698 | 486509 | 685977689 | |
| 113 | +| 998 | 995009 | 5970053 | |
| 114 | + |
| 115 | +The scan through \(10^9\) and the [second scan](search_20_60_deep.log) |
| 116 | +over \(10^9<q\le10^{11}\) find no certificate for the five previously |
| 117 | +unresolved prime moduli through \(k=60\), namely \(k=20,23,35,38,56\). |
| 118 | +These five cases remain unresolved here. The task's suggested |
| 119 | +\(k=14\) search has a composite modulus and |
| 120 | +[Gordon's Section III](https://arxiv.org/html/2408.16721v3#S3) has |
| 121 | +already settled that case by exhaustive search. |
| 122 | + |
| 123 | +## Theorem 3. The valuation obstruction misses \(k=11\) |
| 124 | + |
| 125 | +At \(k=11\) the only prime divisor of \(F_{113}(10)\) is congruent to |
| 126 | +1 modulo 113. Thus searching arbitrarily far for an odd-valuation prime |
| 127 | +congruent to \(-1\) gives no exclusion in this case. The known exclusion |
| 128 | +comes from exhaustive search. [Buratti and Stinson, Theorem 2.3](https://arxiv.org/abs/2007.01908) |
| 129 | + |
| 130 | +**Proof.** Compute \(M=F_{113}(10)\) by the trace recurrence. The code |
| 131 | +below certifies the complete prime factorization of \(M-1\) by trial |
| 132 | +division and multiplication. It then checks that 11 is a unit |
| 133 | +modulo \(M\) of order \(M-1\). Indeed, the order divides \(M-1\) |
| 134 | +by the first power check, and every proper divisor of \(M-1\) divides |
| 135 | +\((M-1)/p\) for some prime \(p\mid M-1\). The subsequent checks rule |
| 136 | +out each of those divisors. The group of units therefore has at |
| 137 | +least \(M-1\) elements, so every nonzero residue is a unit and \(M\) |
| 138 | +is prime. The final check gives its residue modulo 113. ∎ |
| 139 | + |
| 140 | +```sh |
| 141 | +python3 - <<'PY' |
| 142 | +from math import isqrt, prod |
| 143 | + |
| 144 | +previous, current, norm = 2, 10, 1 |
| 145 | +for _ in range(56): |
| 146 | + norm += current |
| 147 | + previous, current = current, 10 * current - previous |
| 148 | +assert norm == 62996145229622574934853694331337604395237530175496063121 |
| 149 | + |
| 150 | +factors = { |
| 151 | + 2: 4, 3: 3, 5: 1, 7: 3, 13: 1, 29: 1, 83: 1, 113: 1, |
| 152 | + 457: 1, 673: 1, 881: 1, 11969: 1, 32117: 1, 46171: 1, |
| 153 | + 3627707: 1, 7335673: 1, 187899991: 1, |
| 154 | +} |
| 155 | +assert all(all(p % d for d in range(2, isqrt(p) + 1)) for p in factors) |
| 156 | +assert prod(p**e for p, e in factors.items()) == norm - 1 |
| 157 | +assert pow(11, norm - 1, norm) == 1 |
| 158 | +assert all(pow(11, (norm - 1) // p, norm) != 1 for p in factors) |
| 159 | +assert norm % 113 == 1 |
| 160 | +PY |
| 161 | +``` |
| 162 | + |
| 163 | +## Offline reproduction |
| 164 | + |
| 165 | +From the repository root, run the following with Python 3.8 or later. |
| 166 | +The search stops at the first odd valuation for each \(k\). A |
| 167 | +`no certificate` line gives the number of candidate primes in that |
| 168 | +run's interval, and establishes only the outcome of the bounded test. |
| 169 | + |
| 170 | +```sh |
| 171 | +cd experiments/nearperfect/prime_modulus |
| 172 | +python3 search.py 6 1000 1000000000 > /tmp/nearperfect-prime-wide.log |
| 173 | +diff -u search_6_1000.log /tmp/nearperfect-prime-wide.log |
| 174 | +python3 verify.py search_6_1000.log |
| 175 | +python3 search.py 20 60 100000000000 --min-prime 1000000001 > /tmp/nearperfect-prime-deep.log |
| 176 | +diff -u search_20_60_deep.log /tmp/nearperfect-prime-deep.log |
| 177 | +``` |