Basic lemmas on prime factorizations #
Basic facts about factorization #
Lemmas characterising when n.factorization p = 0
#
Lemmas about factorizations of products and powers #
A product over n.factorization
can be written as a product over n.primeFactors
;
A product over n.primeFactors
can be written as a product over n.factorization
;
Lemmas about factorizations of primes and prime powers #
The multiplicity of prime p
in p
is 1
If the factorization of n
contains just one number p
then n
is a power of p
Equivalence between ℕ+
and ℕ →₀ ℕ
with support in the primes. #
Factorization and divisibility #
The set of positive powers of prime p
that divide n
is exactly the set of
positive natural numbers up to n.factorization p
.
Factorization and coprimes #
Two positive naturals are equal if their prime padic valuations are equal
Lemmas about factorizations of particular functions #
Exactly n / p
naturals in [1, n]
are multiples of p
.
See Nat.card_multiples'
for an alternative spelling of the statement.
Exactly n / p
naturals in (0, n]
are multiples of p
.
There are exactly ⌊N/n⌋
positive multiples of n
that are ≤ N
.
See Nat.card_multiples
for a "shifted-by-one" version.