private function getRadixRoots()
    {
        $radix = count($this->digits);
        $roots = [$radix];

        for ($i = 2; ($root = (int) ($radix ** (1 / $i))) > 1; $i++) {
            if ($root ** $i === $radix) {
                $roots[] = $root;
            }
        }

        return $roots;
    }
private function getRadixRoots()
    {
        $radix = count($this->digits);
        $roots = [$radix];

        for ($i = 2; ($root = (int) ($radix ** (1 / $i))) > 1; $i++) {
            if ($root ** $i === $radix) {
                $roots[] = $root;
            }
        }

        return $roots;
    }
private function getRadixRoots ( ) { $ radix = count ( $ this -> digits ) ; $ roots = [ $ radix ] ; for ( $ i = 2 ; ( $ root = ( int ) ( $ radix ** ( 1 / $ i ) ) ) > 1 ; $ i ++ ) { if ( $ root ** $ i === $ radix ) { $ roots [ ] = $ root ; } } return $ roots ; }
Returns all integer roots for the radix.
@return int[] Array of integer roots for the radix
Returns all integer roots for the radix .