Runs of multiples: definitions #
For a finite set S of positive integers and a ∈ S, kVal S a is the least positive
integer k with k * a ∉ S. We write L S a = kVal S a - 1 for the length of the run
a, 2a, …, L a inside S, and A S t for the set of a ∈ S whose run has length ≥ t.
The elements of S whose first t multiples all lie in S.
Equations
- RunsOfMultiples.A S t = {a ∈ S | ∀ i ∈ Finset.Icc 1 t, i * a ∈ S}
Instances For
Run length L S a = kVal S a - 1.
Equations
- RunsOfMultiples.L S a = RunsOfMultiples.kVal S a - 1