2

I just started learning GAP and I'm trying to do simple exercises. The following problem is something I have not been able to figure out.

So I found the character degrees of $S_4$ using the following code:

CharacterDegrees(CharacterTable($"S_4"$));

Now this gives the output [ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ] ] , which means that there are two irreducible character of degree 1, one irreducible character of degree 2 and two irreducible characters of degree 3. I want to calculate the product of irreducible character degrees from this list. i.e., I want to calculate 1.1.2.3.3 directly from this list. Is there a command or a function that can be used in a situation like this?

Thak you!

1 Answers1

1

I don't know if there's any inbuilt function to do this, but you could easily make one as follows:

myFunction := function( L )
    return Product( List( L, x -> x[1]^x[2] ) );
end;

You can then use it like this:

gap> L := CharacterDegrees( CharacterTable( "S4" ) );
[ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ] ]
gap> myFunction( L );
18
sTertooy
  • 6,205
  • this is great! Thank you very much! –  Nov 29 '20 at 23:33
  • 1
    Just to mention, an equivalent but shorter way to define this function is myFunction := L ->Product( L, x -> x[1]^x[2] ); (in particular, using List is not necessary) – Max Horn Dec 04 '20 at 20:31