# SageMath code for working with Dirichlet character 15824.fh.5941 # Define the Dirichlet character: from sage.modular.dirichlet import DirichletCharacter H = DirichletGroup(15824, base_ring=CyclotomicField(132)) M = H._module chi = DirichletCharacter(H, M([0,33,114,110])) # Modulus: chi.modulus() # Conductor: chi.conductor() # Order: chi.multiplicative_order() # Whether the character is real: chi.multiplicative_order() <= 2 # If the character is primitive: chi.is_primitive() # Parity: chi.is_odd() # Galois orbit: chi.galois_orbit()