# Oscar code for working with abstract group 501.1. # If you have not already loaded the Oscar package, you should type "using Oscar;" before running the code below. # Some of these functions may take a long time to execute (this depends on the group). # Define group as a cyclic group: G = cyclic_group(501) # Order of the group: order(G) # Exponent of the group: exponent(G) # Automorphism group: automorphism_group(G) # Composition factors of the group: composition_series(G) # Nilpotency class of the group: if is_nilpotent(G) nilpotency_class(G) end # Derived length of the group: derived_length(G) # Determine if the group G is abelian: is_abelian(G) # Determine if the group G is cyclic: is_cyclic(G) # Determine if the group G is elementary abelian: is_elementary_abelian(G) # Determine if the group G is nilpotent: is_nilpotent(G) # Determine if the group G is perfect: is_perfect(G) # Determine if the group G is a p-group: is_pgroup(G) # Determine if the group G is simple: is_simple(G) # Determine if the group G is solvable: is_solvable(G) # Determine if the group G is supersolvable: is_supersolvable(G) # Compute statistics for the group G: # Oscar code to output the first two rows of the group statistics table element_orders = [order(g) for g in elements(G)] orders = sort(unique(element_orders)) println("Orders: ", orders) element_counts = [count(==(n), element_orders) for n in orders] println("Elements: ", element_counts, " ", order(G)) ccs = conjugacy_classes(G) cc_orders = [order(representative(cc)) for cc in ccs] cc_counts = [count(==(n), cc_orders) for n in orders] println("Conjugacy classes: ", cc_counts, " ", length(ccs)) # List of conjugacy classes of the group: conjugacy_classes(G) # Output not guaranteed to exactly match the LMFDB table # Compute statistics about the characters of G: # Outputs an MSet containing the absolutely irreducible degrees of G and their multiplicities. character_degrees(G) # Define the group as a permutation group: @permutation_group(170, (1,3,2), (4,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,127,126,125,124,123,122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5)) # The primary decomposition of the group: abelian_invariants(G) # The abelianization of the group: quo(G, derived_subgroup(G)[1]) # List of subgroups of the group: subgroups(G) # Center of the group: center(G) # Commutator subgroup of the group G: derived_subgroup(G) # Frattini subgroup of the group G: frattini_subgroup(G) # Fitting subgroup of the group G: fitting_subgroup(G) # Radical of the group G: solvable_radical(G) # Socle of the group G: socle(G) # Derived series of the group G: derived_series(G) # Chief series of the group G: chief_series(G) # The lower central series of the group G: lower_central_series(G) # The upper central series of the group G: upper_central_series(G) # Character table: character_table(G) # Output not guaranteed to exactly match the LMFDB table