Documentation

Projects.DigitalRoot.Mul

theorem DigitalRoot.digRoot_mul {b : ℕ} [hb : b.Base] {n m : ℕ} :
digRoot b (n * m) = digRoot b (digRoot b n * digRoot b m)
theorem DigitalRoot.digRoot_pow {b : ℕ} [hb : b.Base] {n m : ℕ} :
digRoot b (n ^ m) = digRoot b (digRoot b n ^ m)
@[simp]
theorem DigitalRoot.digRoot_base_pred_mul {b : ℕ} [hb : b.Base] {n : ℕ} :
digRoot b ((b - 1) * n) = if n = 0 then 0 else b - 1
@[simp]
theorem DigitalRoot.digRoot_mul_base_pred {b : ℕ} [hb : b.Base] {n : ℕ} :
digRoot b (n * (b - 1)) = if n = 0 then 0 else b - 1
@[simp]
theorem DigitalRoot.digRoot_base_pred_pow_succ {b : ℕ} [hb : b.Base] {n : ℕ} :
digRoot b ((b - 1) ^ (n + 1)) = b - 1