// Magma code for working with Dirichlet character 297.w.211 // Define the Dirichlet character: // Please install CHIMP (https://github.com/edgarcosta/CHIMP) if you want to run this code chi := DirichletCharacter("297.211"); // Modulus: Modulus(chi); // Conductor: Conductor(chi); // Order: Order(chi); // Whether the character is real: Order(chi) le 2; // If the character is primitive: IsPrimitive(chi); // Parity: IsOdd(chi); // Galois orbit: order := Order(chi); { chi^k : k in [1..order-1] | GCD(k,order) eq 1 };