# Properties

 Label 18.7 Modulus $18$ Conductor $9$ Order $3$ Real no Primitive no Minimal yes Parity even

# Learn more

Show commands: PariGP / SageMath
from sage.modular.dirichlet import DirichletCharacter

H = DirichletGroup(18, base_ring=CyclotomicField(6))

M = H._module

chi = DirichletCharacter(H, M([4]))

pari: [g,chi] = znchar(Mod(7,18))

## Basic properties

 Modulus: $$18$$ Conductor: $$9$$ sage: chi.conductor()  pari: znconreyconductor(g,chi) Order: $$3$$ sage: chi.multiplicative_order()  pari: charorder(g,chi) Real: no Primitive: no, induced from $$\chi_{9}(7,\cdot)$$ sage: chi.is_primitive()  pari: #znconreyconductor(g,chi)==1 Minimal: yes Parity: even sage: chi.is_odd()  pari: zncharisodd(g,chi)

## Galois orbit 18.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(\sqrt{-3})$$ Fixed field: $$\Q(\zeta_{9})^+$$

## Values on generators

$$11$$ → $$e\left(\frac{2}{3}\right)$$

## Values

 $$a$$ $$-1$$ $$1$$ $$5$$ $$7$$ $$11$$ $$13$$ $$\chi_{ 18 }(7, a)$$ $$1$$ $$1$$ $$e\left(\frac{1}{3}\right)$$ $$e\left(\frac{2}{3}\right)$$ $$e\left(\frac{2}{3}\right)$$ $$e\left(\frac{1}{3}\right)$$
sage: chi.jacobi_sum(n)

$$\chi_{ 18 }(7,a) \;$$ at $$\;a =$$ e.g. 2

## Gauss sum

sage: chi.gauss_sum(a)

pari: znchargauss(g,chi,a)

$$\tau_{ a }( \chi_{ 18 }(7,·) )\;$$ at $$\;a =$$ e.g. 2

## Jacobi sum

sage: chi.jacobi_sum(n)

$$J(\chi_{ 18 }(7,·),\chi_{ 18 }(n,·)) \;$$ for $$\; n =$$ e.g. 1

## Kloosterman sum

sage: chi.kloosterman_sum(a,b)

$$K(a,b,\chi_{ 18 }(7,·)) \;$$ at $$\; a,b =$$ e.g. 1,2