Documentation

Mathlib.NumberTheory.FactorisationProperties

Factorisation properties of natural numbers #

This file defines abundant, pseudoperfect, deficient, and weird numbers and formalizes their relations with prime and perfect numbers.

Main Definitions #

Main Results #

Implementation Notes #

References #

Tags #

abundant, deficient, weird, pseudoperfect

def Nat.Abundant (n : ) :

n : ℕ is abundant if the sum of the proper divisors of n is greater than n.

Instances For
    @[implicit_reducible]
    instance Nat.instDecidableAbundant (n : ) :
    Decidable n.Abundant
    def Nat.Deficient (n : ) :

    n : ℕ is deficient if the sum of the proper divisors of n is less than n.

    Instances For
      @[implicit_reducible]
      instance Nat.instDecidableDeficient (n : ) :
      Decidable n.Deficient
      def Nat.Pseudoperfect (n : ) :

      A positive natural number n is pseudoperfect if there exists a subset of the proper divisors of n such that the sum of that subset is equal to n.

      Instances For
        @[implicit_reducible]
        instance Nat.instDecidablePseudoperfect (n : ) :
        Decidable n.Pseudoperfect
        def Nat.Weird (n : ) :

        n : ℕ is a weird number if and only if it is abundant but not pseudoperfect.

        Instances For
          @[implicit_reducible]
          instance Nat.instDecidableWeird (n : ) :
          Decidable n.Weird
          def Nat.abundancyIndex (n : ) :

          abundancyIndex n is the sum of the divisors of n divided by n.

          Instances For
            theorem Nat.not_pseudoperfect_iff_forall {n : } :
            ¬n.Pseudoperfect n = 0 sn.properDivisors, is, i n
            theorem Nat.deficient_or_perfect_or_abundant {n : } (hn : 0 n) :
            n.Deficient n.Abundant n.Perfect

            A positive natural number is either deficient, perfect, or abundant

            theorem Nat.Prime.not_weird {n : } (h : Prime n) :
            ¬n.Weird
            theorem Nat.Prime.not_perfect {p : } (h : Prime p) :
            theorem Nat.Prime.deficient_pow {n m : } (h : Prime n) :
            (n ^ m).Deficient

            Any natural number power of a prime is deficient

            There exists infinitely many deficient numbers

            theorem Nat.abundant_iff_sum_divisors {n : } :
            n.Abundant 2 * n < in.divisors, i
            theorem Nat.abundancyIndex_le_of_dvd {n m : } (hn : n 0) (hd : m n) :
            theorem Nat.Abundant.of_dvd {n m : } (h : m.Abundant) (hd : m n) (hn : n 0) :
            theorem Nat.Abundant.mul_left {n m : } (h : n.Abundant) (hm : m 0) :
            (m * n).Abundant