lean_workbook_plus_45242
ProvedLet , , and represent the number of nickels, dimes, and quarters in the bank, respectively. Then and . Also, , , and must be non-negative integers. Dividing the second equation by yields , and subtracting the first equation from this gives . Because cannot be negative, is at most , and we check that dimes and nickels produces \8.35 d 0 1 2 q d 3 q=16 16 3 81 d 67 3 64$ .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_45242 (n d q : ℕ) (h₀ : 0 < n ∧ 0 < d ∧ 0 < q) (h₁ : n + d + q = 100) (h₂ : 5 * n + 10 * d + 25 * q = 835) : 3 ≤ d ∧ d ≤ 67 := by sorry
Source