FLINT3.7.0-dev

dirichlet_order_ui, dirichlet_order_char

Synopsis#include <flint/dirichlet.h>
ulong dirichlet_order_ui(const dirichlet_group_t G, ulong a)source
ulong dirichlet_order_char(const dirichlet_group_t G, const dirichlet_char_t x)source

Return the order of \chi_q(a, \cdot) in the character group, which is the multiplicative order of a modulo q.

Guides#

Cite this page

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