TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

IsNilpotent ( elt-res^rat x ) -> elt-alg^boo, elt-ord^rat

Optional Arguments

Resultselt-ord^rat1 <= Results <= 2

Description

Return `TRUE' iff residue class `x' is nilpotent, i.e. if there exists an integer `q' with `x^q = 0', return `FALSE' otherwise.
If `x' is nilpotent `IsNilpotent' also returns the index of nilpotence of x, i.e. the smallest `q' such that x^q = 0.

Examples

x_z7z := IntegerRing(7); IsNilpotent(Element(x_z7z,4));
x_z8z := IntegerRing(8); IsNilpotent(Element(x_z8z,4));
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group