FLINT3.7.0-dev

arith_number_of_partitions

Synopsis#include <flint/arith.h>
void arith_number_of_partitions(fmpz_t x, ulong n)source

Sets x to p(n). A wrapper of partitions_fmpz_ui, which uses the Hardy–Ramanujan–Rademacher formula for large n.

Cite this page

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