arith_ramanujan_tau
Synopsis
#include <flint/arith.h>The function factors n, computes \tau(p) for the prime factors with arith_ramanujan_tau_series, and uses the multiplicativity of \tau and the recurrence \tau(p^{r+1}) = \tau(p) \tau(p^r) - p^{11} \tau(p^{r-1}). The cost is dominated by the series of length P + 1, where P is the largest prime factor of n, which must fit in a word.
Cite this page
The FLINT team, “arith_ramanujan_tau (arith.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arith/arith_ramanujan_tau.html (generated 2026-10-20).
@misc{flint-doc-arith-arith-ramanujan-tau,
author = {{The FLINT team}},
title = {{arith\_ramanujan\_tau (arith.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arith/arith_ramanujan_tau.html},
note = {Generated 2026-10-20}
}