sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup({modulus}, base_ring=CyclotomicField({sage_zeta_order}))
M = H._module
chi = DirichletCharacter(H, M([{sage_dirichlet_gens}]))
gp:[g,chi] = znchar(Mod({number}, {modulus}))
magma:// Please install CHIMP (https://github.com/edgarcosta/CHIMP) if you want to run this code
chi := DirichletCharacter("{modulus}.{number}");
| Modulus: | \(5645376\) |
sage:chi.modulus()
gp:g[1][1]
magma:Modulus(chi);
|
| Conductor: | \(64\) |
sage:chi.conductor()
gp:znconreyconductor(g,chi)
magma:Conductor(chi);
|
| Order: | \(16\) |
sage:chi.multiplicative_order()
gp:charorder(g,chi)
magma:Order(chi);
|
| Real: | no |
sage:chi.multiplicative_order() <= 2
gp:charorder(g,chi) <= 2
magma:Order(chi) le 2;
|
| Primitive: | no, induced from \(\chi_{64}(5,\cdot)\) |
sage:chi.is_primitive()
gp:#znconreyconductor(g,chi)==1
magma:IsPrimitive(chi);
|
| Parity: | even |
sage:chi.is_odd()
gp:zncharisodd(g,chi)
magma:IsOdd(chi);
|
\((2646271,352837,3469313,3499201)\) → \((1,e\left(\frac{1}{16}\right),1,1)\)
| \(a\) |
\(-1\) | \(1\) | \(5\) | \(7\) | \(13\) | \(17\) | \(19\) | \(23\) | \(25\) | \(29\) | \(31\) |
| \( \chi_{ 5645376 }(352837, a) \) |
\(1\) | \(1\) | \(e\left(\frac{1}{16}\right)\) | \(e\left(\frac{5}{8}\right)\) | \(e\left(\frac{15}{16}\right)\) | \(-i\) | \(e\left(\frac{7}{16}\right)\) | \(e\left(\frac{7}{8}\right)\) | \(e\left(\frac{1}{8}\right)\) | \(e\left(\frac{11}{16}\right)\) | \(-1\) |
sage:chi(x)
gp:chareval(g,chi,x) \\\\ x integer, value in Q/Z'
magma:chi(x)