Left to Solve
Problems / MathOverflow (not formalized)

The kronecker symbol and factorization of $n=\frac{B^N-1}{B-1}$

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

Let . Assume is congruent to 3 modulo 4.

We have the following:

• If is 1 modulo 4, then is quadratic residue modulo and is quadratic non-residue. The square root is efficiently computable via Gauss sums since is -th root of unity modulo .

• If is 3 modulo 4, then is quadratic residue modulo and is quadratic non-residue. The square root is efficiently computable via Gauss sums since is -th root of unity modulo .

• If is 1 modulo 4 and then is composite and the kronecker symbol is efficiently computable. If were prime we will have .

• If is 3 modulo 4 and then is composite.

(3) and (4) can be used as compositeness checking of . If is not prime, we have algebraic factorization of .

By Fermat's little theorem, (3) and (4) never happen for prime .

What properties of the factorization of can we find if (3) or (4) happens?

For the sequence of starts

Posed by joro · nt.number-theory, factorization, divisors-multiples

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-379135.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-379135.lean

import Mathlib

/-!
# The kronecker symbol and factorization of $n=\frac{B^N-1}{B-1}$

Source: https://mathoverflow.net/questions/379135
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_379135

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_379135