lean_workbook_plus_46324
ProvedLet be the number of numbers in the list and be their sum. Because Lara multiplied each number in the list by , the sum of the numbers in the list also increased by a factor of . It follows that . Additionally, because Maddy added to each number in the list, the overall sum became . Setting this equal to and solving yields .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_46324 (n s : ℕ) (h₀ : 0 < n) (h₁ : s = 15) (h₂ : s + 3 * n = 45) : n = 10 := by sorry
Source