FLINT3.7.0-dev

_unity_zp_pow_select_k

Synopsis#include <flint/aprcl.h>
ulong _unity_zp_pow_select_k(const fmpz_t n)source

Returns the least kk with log⁡n<k(k+1)22k/(2k+1−k−2)+1\log n < k(k + 1) 2^{2k} / (2^{k + 1} - k - 2) + 1, the window size for an exponent of the size of nn.

Cite this page

The FLINT team, “_unity_zp_pow_select_k (aprcl.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/aprcl/_unity_zp_pow_select_k.html (generated 2026-11-02).