FLINT3.7.0-dev

arb_partitions_fmpz, arb_partitions_ui

Synopsis#include <flint/arb.h>
void arb_partitions_fmpz(arb_t res, const fmpz_t n, slong prec)source
void arb_partitions_ui(arb_t res, ulong n, slong prec)source

Set res to the partition function p(n). If \log_2 p(n) exceeds twice prec, the leading term of the Hardy-Ramanujan-Rademacher series with an error bound is used; otherwise the exact value is computed and rounded. See Computing the partition function.

Cite this page

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