Prime powers #
This file deals with prime powers: numbers which are positive integer powers of a single prime.
n
is a prime power if there is a prime p
and a positive natural k
such that n
can be
written as p^k
.
Instances For
An equivalent definition for prime powers: n
is a prime power iff there is a prime p
and a
natural k
such that n
can be written as p^(k+1)
.
theorem
IsPrimePow.pow
{R : Type u_1}
[CommMonoidWithZero R]
{n : R}
(hn : IsPrimePow n)
{k : ℕ}
(hk : k ≠ 0)
:
IsPrimePow (n ^ k)
theorem
IsPrimePow.ne_zero
{R : Type u_1}
[CommMonoidWithZero R]
[NoZeroDivisors R]
{n : R}
(h : IsPrimePow n)
:
n ≠ 0
instance
instDecidableIsPrimePowNatToCommMonoidWithZeroLinearOrderedCommMonoidWithZero
{n : ℕ}
:
Decidable (IsPrimePow n)
Equations
- One or more equations did not get rendered due to their size.
theorem
Nat.disjoint_divisors_filter_isPrimePow
{a : ℕ}
{b : ℕ}
(hab : Nat.Coprime a b)
:
Disjoint (Finset.filter IsPrimePow (Nat.divisors a)) (Finset.filter IsPrimePow (Nat.divisors b))