FLINT3.7.0-dev

dirichlet_index_char, dirichlet_char_index

Synopsis#include <flint/dirichlet.h>
ulong dirichlet_index_char(const dirichlet_group_t G, const dirichlet_char_t x)source
void dirichlet_char_index(dirichlet_char_t x, const dirichlet_group_t G, ulong j)source

Convert between an element and its index j \in [0, \varphi(q)) in the lexicographic order of the logs, the mixed-radix number with digits \mathit{log}[k] in base \varphi_k.

Cite this page

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