SquareFreePart
The square-free part of : the product of the primes dividing to an odd power.
SquareFreePart(n) in with square-free; the sign of is a unit and is dropped.SageMath
abs(n).squarefree_part()✓Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | number-theory | always |
Details
- Every nonzero integer is for a unique and square-free ; this is , and SquarePartRoot is . is square-free exactly when , and a perfect square (up to sign) when .
- The sign is a unit, as in PrimeOmega, so always: . Sage's
squarefree_partkeeps the sign instead. - Defined on nonzero integers; 0 stays unevaluated.
- Also called the square-free kernel; that name is more often given to the radical, the product of the distinct primes, which is a different function. The radical is Wolfram Function Repository's
IntegerRadical.
Plot
Examples
Scope #
Properties #
About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 11 agree1 differSageMath 11 agree1 unevaluated |
| Crosswalk | WikipediaMathWorldWikidataOEIS ×2SageMath |
Implementation
mapped
wolframpackages/oracle/src/mappings.tsWolfram has no head for it; this is its definition over FactorInteger, with the sign of n a unit.
mapped
sagepackages/oracle/src/mappings.tsSage's squarefree_part keeps the sign of n; this reads |n|.
See also: SquarePartRoot, IsSquareFree, FactorInteger, MoebiusMu