Every natural number has a multiple written with the digits and only
ProvedAlfutovaUstinov.problem_4_113decimal-digitselementary-number-theorynumber-theorypigeonhole-principle
This is Problem 4.113 of N. B. Alfutova and A. V. Ustinov, Algebra and Number Theory (MCCME, 2002), Chapter 4, §4 “Theorems of Fermat and Euler”.
Theorem. For every natural number there is a positive multiple of whose decimal representation consists only of the digits and :
This is a classical pigeonhole-principle exercise; it shows, for instance, that can be approximated arbitrarily well by decimal fractions built from zeros and ones.
Formalization Note The decimal digits of are Mathlib's Nat.digits 10 m (the list of base- digits, least significant first, without leading zeros). The multiple is required to be positive, which excludes the trivial multiple .
Preamble
import Mathlib
Formal statement
namespace AlfutovaUstinov
theorem problem_4_113 (n : ℕ) (hn : 0 < n) :
∃ m : ℕ, 0 < m ∧ n ∣ m ∧ ∀ d ∈ Nat.digits 10 m, d = 0 ∨ d = 1 := by sorry
end AlfutovaUstinovSource
N. B. Alfutova, A. V. Ustinov, «Алгебра и теория чисел. Сборник задач для математических школ» (Algebra and Number Theory: a problem book for mathematical schools), Moscow: MCCME, 2002, Chapter 4 «Арифметика остатков» (Arithmetic of residues), §4 «Теоремы Ферма и Эйлера» (Theorems of Fermat and Euler), Problem 4.113. Problem text and answer as catalogued on problems.ru, problem 60739: https://problems.ru/view_problem_details_new.php?id=60739