Sums over residue classes #
We consider infinite sums over functions f
on ℕ
, restricted to a residue class mod m
.
The main result is summable_indicator_mod_iff
, which states that when f : ℕ → ℝ
is
decreasing, then the sum over f
restricted to any residue class
mod m ≠ 0
converges if and only if the sum over all of ℕ
converges.
theorem
summable_indicator_mod_iff_summable
{R : Type u_1}
[AddCommGroup R]
[TopologicalSpace R]
[TopologicalAddGroup R]
(m : ℕ)
[hm : NeZero m]
(k : ℕ)
(f : ℕ → R)
:
A sequence f
with values in an additive topological group R
is summable on the
residue class of k
mod m
if and only if f (m*n + k)
is summable.
theorem
summable_indicator_mod_iff_summable_indicator_mod
{m : ℕ}
[NeZero m]
{f : ℕ → ℝ}
(hf : Antitone f)
{k : ZMod m}
(l : ZMod m)
(hs : Summable ({n : ℕ | ↑n = k}.indicator f))
:
If a decreasing sequence of real numbers is summable on one residue class
modulo m
, then it is also summable on every other residue class mod m
.
theorem
Nat.sumByResidueClasses
{R : Type u_1}
[AddCommGroup R]
[UniformSpace R]
[UniformAddGroup R]
[CompleteSpace R]
[T0Space R]
{f : ℕ → R}
(hf : Summable f)
(N : ℕ)
[NeZero N]
:
If f
is a summable function on ℕ
, and 0 < N
, then we may compute ∑' n : ℕ, f n
by
summing each residue class mod N
separately.