galois.is_powersmooth(n: int, B: int) bool

Determines if the integer n is B-powersmooth.

Parameters:
n: int

An integer.

B: int

The smoothness bound B2.

Returns:

True if n is B-powersmooth.

See also

factors, is_smooth

Notes

An integer n with prime factorization n=p1e1pkek is B-powersmooth if pieiB for 1ik.

Examples

Comparison of B-smooth and B-powersmooth. Necessarily, any n that is B-powersmooth must be B-smooth.

In [1]: galois.is_smooth(2**4 * 3**2 * 5, 5)
Out[1]: True

In [2]: galois.is_powersmooth(2**4 * 3**2 * 5, 5)
Out[2]: False