import OMAReductions.R_oeis_a394227_R1 import Mathlib private lemma digits_cert (n : ℕ) (ds : List ℕ) (hne : ds ≠ []) (hbd : ∀ d ∈ ds, d < 10) (hlast : ds.getLast hne ≠ 0) (hval : Nat.ofDigits 10 ds = n) : Nat.digits 10 n = ds := by rw [← hval] exact Nat.digits_ofDigits 10 (by decide) ds hbd (fun _ => hlast) private lemma digits_cert_20 : Nat.digits 10 22262623323232223232 = [2, 3, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 3, 2, 6, 2, 6, 2, 2, 2] := digits_cert 22262623323232223232 [2, 3, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 3, 2, 6, 2, 6, 2, 2, 2] (by decide) (by decide) (by decide) (by norm_num [Nat.ofDigits]) private lemma witness_20_is_term : OMA.S_oeis_a394227.T 22262623323232223232 := by unfold OMA.S_oeis_a394227.T rw [digits_cert_20] refine ⟨by norm_num, by decide, ?_⟩ rw [show ([2, 3, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 3, 2, 6, 2, 6, 2, 2, 2] : List ℕ).prod = 107495424 by decide] exact ⟨207102986293, by norm_num⟩ theorem OMA.solution : OMA.R_oeis_a394227_R1.H1 := by intro B hB refine ⟨22262623323232223232, by omega, witness_20_is_term⟩