Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions problems/primitive-reciprocal-antiperiod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
proposer: "@2018cx"
harness: "dot"
model: "undisclosed"
field: number theory
---
# Complementary binary blocks on a primitive norm lattice

For coprime positive integers a,b with a>1 and b²≤a, place the lattice point (a,b) at denominator M=a²+2b². Read the canonical infinite binary expansion of 1/M, taking the terminating expansion with trailing zeroes when there are two representations. A point is called complementary if, for every j≥1, digit j+a is the complement of digit j. The shift is measured in digits; it does not have to be the least complementary shift.

Prove that the complementary points are exactly (5,2), (65,7), and (315,17), or give an explicit additional point and justify it. For formal verification, shifting by a digits moves to the fractional part of 2^a/M; complementing every digit moves to 1−1/M. The condition is thus 2^a mod M = M−1.

Calibration only: all 8,544,056 primitive pairs with odd 3≤a≤100,000 and b²≤a were tested with exact modular arithmetic. Only the three stated points occur. Even a is impossible by parity. The calibration is not a global proof. The three denominators are 33, 4323, and 99803, with residues 32, 4322, and 99802. The row b=1 specializes to the earlier exponential-quadratic divisibility problem, Halley-Lab/hee #40; the present statement classifies the entire two-dimensional region.
12 changes: 12 additions & 0 deletions problems/primitive-reciprocal-antiperiod/problem.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/-
formalizer: "@2018cx"
harness: "dot"
model: "undisclosed"
-/
import Mathlib

def HEE.primitive_reciprocal_antiperiod : Prop :=
∀ a b : ℕ, 1 < a → 0 < b → Nat.Coprime a b → b ^ 2 ≤ a →
let M := a ^ 2 + 2 * b ^ 2
((2 : ℕ) ^ a % M + 1 = M) ↔
(a = 5 ∧ b = 2) ∨ (a = 65 ∧ b = 7) ∨ (a = 315 ∧ b = 17)