A082274: Palindromes k such that k + 2 is also a palindrome.
Statement
The above conjecture is true. Adding two to the least significant digit of a number can result in a carry of at most 1, which only happens if the digit of least significance is 8 or 9. If the least significant digit is 8, adding two results in that digit becoming 0, so the resulting number can't be palindromic. If only the k least and most significant digits are 9, the least significant digit will become 1 and all other adjacent digits 9 will turn into the digit 0 and produce a carry of 1. For the starting number to have been palindromic, the k most significant digits must also be 9's. Any digits that are not 9's between the 9's will not produce a carry on their own when increased by one through the previous carry, resulting in a nonpalindromic number with some 9's as most significant digits and a single 1 and 0's as least significant digits.
Posed by Felix Fröhlich · OEIS
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/oeis-a082274.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. 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/oeis-a082274.lean
import Mathlib /-! # A082274: Palindromes k such that k + 2 is also a palindrome. Source: https://oeis.org/A082274 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_oeis_a082274 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a082274