Show commands: Magma / Pari/GP / SageMath
Copy content comment:Define the Dirichlet character
 
Copy content sage:from sage.modular.dirichlet import DirichletCharacter H = DirichletGroup(340, base_ring=CyclotomicField(16)) M = H._module chi = DirichletCharacter(H, M([8,8,9]))
 
Copy content gp:[g,chi] = znchar(Mod(99, 340))
 
Copy content magma:// Please install CHIMP (https://github.com/edgarcosta/CHIMP) if you want to run this code chi := DirichletCharacter("340.99");
 

Basic properties

Modulus: \(340\)
Copy content comment:Modulus
 
Copy content sage:chi.modulus()
 
Copy content gp:g[1][1]
 
Copy content magma:Modulus(chi);
 
Conductor: \(340\)
Copy content comment:Conductor
 
Copy content sage:chi.conductor()
 
Copy content gp:znconreyconductor(g,chi)
 
Copy content magma:Conductor(chi);
 
Order: \(16\)
Copy content comment:Order
 
Copy content sage:chi.multiplicative_order()
 
Copy content gp:charorder(g,chi)
 
Copy content magma:Order(chi);
 
Real: no
Copy content comment:Whether the character is real
 
Copy content sage:chi.multiplicative_order() <= 2
 
Copy content gp:charorder(g,chi) <= 2
 
Copy content magma:Order(chi) le 2;
 
Primitive: yes
Copy content comment:If the character is primitive
 
Copy content sage:chi.is_primitive()
 
Copy content gp:#znconreyconductor(g,chi)==1
 
Copy content magma:IsPrimitive(chi);
 
Minimal: yes
Parity: even
Copy content comment:Parity
 
Copy content sage:chi.is_odd()
 
Copy content gp:zncharisodd(g,chi)
 
Copy content magma:IsOdd(chi);
 

Galois orbit 340.bg

\(\chi_{340}(39,\cdot)\) \(\chi_{340}(79,\cdot)\) \(\chi_{340}(99,\cdot)\) \(\chi_{340}(139,\cdot)\) \(\chi_{340}(159,\cdot)\) \(\chi_{340}(199,\cdot)\) \(\chi_{340}(279,\cdot)\) \(\chi_{340}(299,\cdot)\)

Copy content comment:Galois orbit
 
Copy content sage:chi.galois_orbit()
 
Copy content gp:order = charorder(g,chi) [ charpow(g,chi, k % order) | k <-[1..order-1], gcd(k,order)==1 ]
 
Copy content magma:order := Order(chi); { chi^k : k in [1..order-1] | GCD(k,order) eq 1 };
 

Related number fields

Field of values: \(\Q(\zeta_{16})\)
Copy content comment:Field of values of chi
 
Copy content sage:CyclotomicField(chi.multiplicative_order())
 
Copy content gp:nfinit(polcyclo(charorder(g,chi)))
 
Copy content magma:CyclotomicField(Order(chi));
 
Fixed field: 16.16.73278030118651284300800000000.1
Copy content comment:Fixed field
 
Copy content sage:chi.fixed_field()
 

Values on generators

\((171,137,241)\) → \((-1,-1,e\left(\frac{9}{16}\right))\)

First values

\(a\) \(-1\)\(1\)\(3\)\(7\)\(9\)\(11\)\(13\)\(19\)\(21\)\(23\)\(27\)\(29\)
\( \chi_{ 340 }(99, a) \) \(1\)\(1\)\(e\left(\frac{9}{16}\right)\)\(e\left(\frac{3}{16}\right)\)\(e\left(\frac{1}{8}\right)\)\(e\left(\frac{7}{16}\right)\)\(-i\)\(e\left(\frac{3}{8}\right)\)\(-i\)\(e\left(\frac{7}{16}\right)\)\(e\left(\frac{11}{16}\right)\)\(e\left(\frac{5}{16}\right)\)
Copy content comment:Value of chi at x
 
Copy content sage:chi(x) # x integer
 
Copy content gp:chareval(g,chi,x) \\ x integer, value in Q/Z
 
Copy content magma:chi(x)
 
\( \chi_{ 340 }(99,a) \;\) at \(\;a = \) e.g. 2

Gauss sum

Copy content comment:Gauss sum
 
Copy content sage:chi.gauss_sum(a)
 
Copy content gp:znchargauss(g,chi,a)
 
\( \tau_{ a }( \chi_{ 340 }(99,·) )\;\) at \(\;a = \) e.g. 2

Jacobi sum

Copy content comment:Jacobi sum
 
Copy content sage:chi.jacobi_sum(n)
 
\( J(\chi_{ 340 }(99,·),\chi_{ 340 }(n,·)) \;\) for \( \; n = \) e.g. 1

Kloosterman sum

Copy content comment:Kloosterman sum
 
Copy content sage:chi.kloosterman_sum(a,b)
 
\(K(a,b,\chi_{ 340 }(99,·)) \;\) at \(\; a,b = \) e.g. 1,2