FLINT3.7.0-dev

arith_harmonic_number, _arith_harmonic_number

Synopsis#include <flint/arith.h>
void arith_harmonic_number(fmpq_t x, slong n)source
void _arith_harmonic_number(fmpz_t num, fmpz_t den, slong n)source

Set the result to the harmonic number H_n = \sum_{k=1}^n 1/k, or to 0 for n \le 0. Wrappers of fmpq_harmonic_ui.

Cite this page

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