We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42fa0a commit c2f873dCopy full SHA for c2f873d
src/flint/types/fmpz.pyx
@@ -684,7 +684,8 @@ cdef class fmpz(flint_scalar):
684
685
def is_perfect_power(self):
686
r"""
687
- Return True if this integer is of the form `r^k`, False otherwise.
+ Return True if this integer is of the form `r^k` with `k>1`, False otherwise.
688
+ `0, 1, -1` are considered perfect powers.
689
690
>>> fmpz(81).is_perfect_power()
691
True
0 commit comments