Cube (algebra) the last two digits, "any" pair of digits with the last digit odd can be a perfect cube. With even cubes, there is considerable restriction, for only 00, 2, 4, 6 and 8 can be the last two digits of a perfect cube (where stands for any odd digit and for any even digit). Some cube numbers are also square numbers; for example, 64 is a square number and a cube number . This happens if and only if the number is a perfect sixth power (in this case 2). The last digits of each 3rd power are: It is,
Root of unity modulo n it is not a primitive root, then there would be some divisor ℓ of "k", with formula_57. In order to exclude this possibility, one has only to check for a few ℓ's equal "k" divided by a prime. That is, what needs to be checked is: Among the primitive "k"-th roots of unity, the primitive formula_23-th roots are most frequent. It is thus recommended to try some integers for being a primitive formula_23-th root, what will succeed quickly. For a primitive formula_23-th root "x", the number formula_30 is a primitive formula_25-th root of unity. If "k" does not divide formula_23,