Left to Solve
Problems / MathOverflow (not formalized)

Which numbers are the sum of two palindromes?

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

Statement

What are the numbers that can be expressed as the sum of two palindromes?

A number is a palindrome if it is the same written backwards, like 1367631.

My motivation comes from the problem posed for some given numbers in a grade 4 math competition.

However, a bit of searching revealed that similar questions have been studied a lot.

It has been a long-standing conjecture that every number is the sum of three palindromes, proved in Javier Cilleruelo, Florian Luca and Lewis Baxter: Every positive integer is a sum of three palindromes, Math. Comp. 87 (2018), 3023-3055.

It is not hard to find numbers that are not the sum of two palindromes.

But do they have a nice characterization?

What is the simplest algorithm to decide if an input number is the sum of two palindromes or not?

Posed by domotorp · nt.number-theory, palindromes

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

import Mathlib

/-!
# Which numbers are the sum of two palindromes?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_440972