Left to Solve
Problems / MathOverflow (not formalized)

Composite number $n$ with most $k \le n$ such that $n \mid \binom nk$

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

Statement

This problem arised in a local forum, proposed by a user named zxt.

Let be the number of nonnegative integer not greater than such that . If for each positive integer , we have , then we say is a Weiming number. Prove that there are infinitely many composite Weiming number.

The first thing I want to point out is that is exactly the OEIS sequence A020475. But this question seems new within my scope or capability of searching.

It is trivial that for each prime . Therefore if we want a composite number to be Weiming, it must be as large as the biggest prime less than it.

I incline heuristically that is the best sort of candidates in the problem. I note that for primes , if in base-, then by Lucas . Therefore, as zxt has conjectured, for a small and a large , which exceeds a little for some , should have been Weiming. But it is definitely hard to find such prime pairs, and we both got stuck here.

I think this problem might be quite hard, and be closed related to some kind of distribution …

Posed by Lasting Howling · nt.number-theory, binomial-coefficients

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-509684.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-509684.lean

import Mathlib

/-!
# Composite number $n$ with most $k \le n$ such that $n \mid \binom nk$

Source: https://mathoverflow.net/questions/509684
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_509684

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

theorem main : sorry := by
  sorry

end OMA.S_mo_509684