Unreachable middle square
Statement
For positive , define the function over the integer interval with that is, keeping the middle bits of the -bit square of -bit . See Donald Knuth's TAOCP, chapter three (at start of volume 2) for references about use of middle square as a building block in pseudo-random number generators.
For large , e.g. or , can we exhibit demonstrably reached by no ?
If , then . By a counting argument, it follows that several in are reached by no .
Numerical experiments show that such unreachable values are relatively dense just below (more than they are just above ).
[code]
Note: This is the unsolved portion of an old question on crypto-SE. A simplified mathoverflow question asking if can reach was answered in the affirmative.
Posed by fgrieu · nt.number-theory
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-418163.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-418163.lean
import Mathlib /-! # Unreachable middle square Source: https://mathoverflow.net/questions/418163 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_418163 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_418163