// Magma code for working with Dirichlet character group of modulus 3 // Define the Dirichlet group: G := FullDirichletGroup(3); // Order: Order(G); // Group structure: PrimaryInvariants(AbelianGroup(G)); // Generators: Generators(G);