PROOF 78
Prove.
The repetend is shorter than the denominator
On the rational numbers ℚ.
A way to read this proof
First separate what is assumed from what is to be proved. At each step, ask which definition or earlier result permits the move. If it is unclear, return to that premise rather than skipping to the conclusion.
Definition D1
For a natural number q ≥ 2 and an integer p with 0 ≤ p < q, set r₀ = p, and for each k ≥ 0 determine dₖ₊₁ and rₖ₊₁ by 10rₖ = q·dₖ₊₁ + rₖ₊₁, 0 ≤ rₖ₊₁ < q. Call dₖ the k-th digit of p/q after the decimal point.
Proof.
∎
Definition D2
When there are some i ≥ 0 and a natural number L such that dₖ₊ₗ = dₖ for every k > i, the least such L is called the length of the repetend.
Proof.
∎
Lemma L1
If i < j and rᵢ = rⱼ, then for L = j − i and every k ≥ i, rₖ = rₖ₊ₗ and dₖ₊₁ = dₖ₊₁₊ₗ.
Proof.
∎
Lemma L2
If rₖ ≠ 0 for every k, then there exist 0 ≤ i < j ≤ q−1 with rᵢ = rⱼ.
Proof.
∎
Theorem T1
If rₖ ≠ 0 for every k, the length of the repetend is at most q−1.
Proof.
∎
Corollary C
For q ≥ 2, the length of the repetend of p/q is always less than q.
Proof.
∎
Remark
Can A2 be removed from this proof?
This proof never actually computes a single remainder. Check what it uses instead.