Documentation

Mathlib.NumberTheory.Harmonic.Defs

This file defines the harmonic numbers.

def harmonic :
ℕ → ℚ

The nth-harmonic number defined as a finset sum of consecutive reciprocals.

Equations
Instances For
    @[simp]
    theorem harmonic_zero :
    @[simp]
    theorem harmonic_succ (n : ℕ) :
    harmonic (n + 1) = harmonic n + (↑(n + 1))⁻¹
    theorem harmonic_pos {n : ℕ} (Hn : n ≠ 0) :
    theorem harmonic_eq_sum_Icc {n : ℕ} :
    harmonic n = Finset.sum (Finset.Icc 1 n) fun (i : ℕ) => (↑i)⁻¹