lean_workbook_plus_37717
ProvedLet's find the sum of three three-digit numbers where each digit from 1 to 9 is used exactly once. Express the numbers as , , and . Show that the sum is a multiple of 9 and find a value that is not a possible sum.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_37717 (a b c a1 b1 c1 a2 b2 c2 : ℕ) (hab : a ≠ a1) (hbc : b ≠ b1) (hca : c ≠ c1) (hab1 : a1 ≠ a2) (hbc1 : b1 ≠ b2) (hca1 : c1 ≠ c2) (hA: a + a1 + a2 = 9) (hB: b + b1 + b2 = 9) (hC: c + c1 + c2 = 9) : 9 ∣ (100 * a + 10 * b + c) + (100 * a1 + 10 * b1 + c1) + (100 * a2 + 10 * b2 + c2) := by sorry
Source