FLINT3.7.0-dev

_padic_exp_bound

Synopsis#include <flint/padic.h>
slong _padic_exp_bound(slong v, slong N, const fmpz_t p)source

Returns n such that \operatorname{ord}_p(x^j / j!) \ge N for all j \ge n and all x with \operatorname{ord}_p(x) = v, so that the exponential series can be truncated after n terms. Requires 1 \le v < N for odd p and 2 \le v < N for p = 2.

If p fits in a slong the result is \lceil ((p - 1)N - 1) / ((p - 1)v - 1) \rceil, which follows from \operatorname{ord}_p(j!) \le (j - 1)/(p - 1); otherwise it is \lceil N / v \rceil, since then j! has no factor p for the j that occur.

Cite this page

The FLINT team, “_padic_exp_bound (padic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/padic/_padic_exp_bound.html (generated 2026-10-20).