FLINT3.7.0-dev

_padic_lifts_exps

Synopsis#include <flint/padic.h>
slong * _padic_lifts_exps(slong * n, slong N)source

Returns the sequence a_0 = N, a_{i+1} = \lceil a_i/2 \rceil, ending with a_{n-1} = 1, and sets *n to its length \lceil \log_2 N \rceil + 1. Requires N \ge 1. The array is allocated with flint_malloc and must be freed with flint_free.

Cite this page

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