Documentation

Mathlib.Combinatorics.Enumerative.Pentagonal

Pentagonal numbers #

This file introduces (generalized) pentagonal numbers $k(3k-1)/2$ for integer $k$.

Some sources, such as A001318 in the OEIS, order generalized pentagonal numbers by indices $k = 0, 1, -1, 2, -2, \cdots$ to form a strictly monotone sequence. This file doesn't follow this convention, but implicitly shows the monotonicity in pentagonal_lt_pentagonal_neg and pentagonal_neg_lt_pentagonal_add_one.

Main definitions #

TODO #

Show the relation between pentagonal numbers and partitions, including the pentagonal number theorem.

References #

def pentagonal (k : ) :

Pentagonal numbers $k(3k-1)/2$ for integer $k$.

Equations
Instances For
    theorem pentagonal_def (k : ) :
    pentagonal k = (k * (3 * k - 1) / 2).toNat
    theorem pentagonal_neg (k : ) :
    pentagonal (-k) = (k * (3 * k + 1) / 2).toNat
    theorem natCast_pentagonal (k : ) :
    (pentagonal k) = k * (3 * k - 1) / 2
    theorem two_mul_natCast_pentagonal (k : ) :
    2 * (pentagonal k) = k * (3 * k - 1)
    theorem two_mul_natCast_pentagonal_neg (k : ) :
    2 * (pentagonal (-k)) = k * (3 * k + 1)
    @[simp]
    theorem pentagonal_inj {x y : } :