Left to Solve
Problems / MathOverflow (not formalized)

Is there an easier way to find the mode of a multiplication table?

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

Statement

You are given a square N by N multiplication table, such that it has N rows and N columns and N>0. Each value is equal to the column number times the row number. Is there a formula for finding the value that occurs most often in this table? For example, in a 4x4 table, the mode is 4 which occurs 3 times. In a 100x100 table, the modes are 360 and 720 which each occur 18 times.

The only way I can think of doing this is counting the number of factor pairs (A times B) with A and B being less than N, also having (A times B) and (B times A) counting as 2 pairs. But C times C (perfect square) only counting as one.

I plan on coding this so I am going for the most efficient solution without just counting the frequencies.

Posed by Aidan · co.combinatorics

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

import Mathlib

/-!
# Is there an easier way to find the mode of a multiplication table?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_415475