A216440: a(n) = smallest m such that 2n-1 | 2^m+1, or 0 if no such m exists.
Statement
From Kristjan Kiolein, Mar 25 2023: Conjecture: a(n) is the number of riffle shuffles of 2(n-1) cards required to reverse the order of the deck, or 0 if no such number of shuffles exists. The number of shuffles required to reverse the deck is A002326(n)/2 when a(n) != 0 and n != 1. This conjecture is in the context of the in-shuffle variant of the riffle shuffle, e.g., [1, 2, 3, 4] -> [3, 1, 4, 2] -> [4, 3, 2, 1]. This does not apply in the context of the out-shuffle variant of the riffle shuffle, e.g., [1, 2, 3, 4] -> [1, 3, 2, 4] -> [1, 2, 3, 4].
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-a216440.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-a216440.lean
import Mathlib /-! # A216440: a(n) = smallest m such that 2n-1 | 2^m+1, or 0 if no such m exists. Source: https://oeis.org/A216440 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_a216440 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a216440