from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(171, base_ring=CyclotomicField(2))
M = H._module
chi = DirichletCharacter(H, M([0,1]))
pari: [g,chi] = znchar(Mod(37,171))
Basic properties
Modulus: | \(171\) | |
Conductor: | \(19\) | sage: chi.conductor()
pari: znconreyconductor(g,chi)
|
Order: | \(2\) | sage: chi.multiplicative_order()
pari: charorder(g,chi)
|
Real: | yes | |
Primitive: | no, induced from \(\chi_{19}(18,\cdot)\) | sage: chi.is_primitive()
pari: #znconreyconductor(g,chi)==1
|
Minimal: | yes | |
Parity: | odd | sage: chi.is_odd()
pari: zncharisodd(g,chi)
|
Galois orbit 171.c
sage: chi.galois_orbit()
order = charorder(g,chi)
[ charpow(g,chi, k % order) | k <-[1..order-1], gcd(k,order)==1 ]
Related number fields
Field of values: | \(\Q\) |
Fixed field: | \(\Q(\sqrt{-19}) \) |
Values on generators
\((20,154)\) → \((1,-1)\)
First values
\(a\) | \(-1\) | \(1\) | \(2\) | \(4\) | \(5\) | \(7\) | \(8\) | \(10\) | \(11\) | \(13\) | \(14\) | \(16\) |
\( \chi_{ 171 }(37, a) \) | \(-1\) | \(1\) | \(-1\) | \(1\) | \(1\) | \(1\) | \(-1\) | \(-1\) | \(1\) | \(-1\) | \(-1\) | \(1\) |
sage: chi.jacobi_sum(n)
Gauss sum
sage: chi.gauss_sum(a)
pari: znchargauss(g,chi,a)
Jacobi sum
sage: chi.jacobi_sum(n)
Kloosterman sum
sage: chi.kloosterman_sum(a,b)