DirichletCharacter
The -th Dirichlet character modulo evaluated at : a completely multiplicative, -periodic map , zero where .
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Dirichlet characterMathWorldDirichletCharacterWikidataQ1063579nLabDirichlet characterDLMF27.8.p1FungrimDirichletCharacter✓Fungrim entry4cf4e4d8c6d1✓fc4f6aWolfram LanguageDirichletCharacter!DirichletCharacter(k, j, n)the character at , for ; is the principal character.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer, integer) -> number | compute-engine | always |
Details
- There are exactly characters mod — the dual group of — and each is determined by its values on a set of generators. , the principal character, is 1 on the units and 0 elsewhere.
- Every value is a root of unity of order dividing , or 0: always, and for .
- The indexing is Wolfram's , which no published formula pins down; it is reproduced here by decomposing into one cyclic factor per prime power of in ascending prime order (an odd contributing its least primitive root, contributing ) and reading as a mixed-radix exponent vector, first component most significant. The whole table is pinned against a Wolfram kernel for every modulus up to 40.
- For a prime with primitive root this comes out as .
- An out-of-range (greater than ) names no character and is left unevaluated.
- A modulus past is left unevaluated too: the kernel works in machine integers.
Plot
Examples
1 more kept as data, checked against the oraclesBasic #
Properties #
Possible issues #
About
| Examples | 15 |
|---|---|
| Checked against | Wolfram Language 14 agree1 differ |
| Crosswalk | WikipediaMathWorldWikidatanLabDLMFFungrimFungrim entry ×3Wolfram Language |
Implementation
primitive · kernela kernel — an algorithm over mutable state that would not be readable as a tree
nativeengine
typescriptpackages/ce-patches/src/compute-engine/numerics/dirichlet-l.tsA discrete logarithm against the cyclic decomposition — an algorithm over mutable state, not a tree.
mappedexternal
wolframpackages/oracle/src/mappings.tsDirichletCharacter[k, j, n], same indexing. mpmath has no character indexing at all.
See also: DirichletL, DirichletBeta, DirichletEta, Zeta