# group_order function

How many elements a group has.

## How to write it

### group_order(group)

**group**

A group, such as symmetric_group(3). Takes an expression.

## Examples

- $\displaystyle \operatorname{group\_order}(\operatorname{symmetric\_group}(3)) = 6$

  `group_order(symmetric_group(3))`

  In the solver, `group_order(symmetric_group(3))` gives `6`.

  [Open in the solver](https://hilberon.com/?q=group_order%28symmetric_group%283%29%29)
- $\displaystyle \operatorname{group\_order}(\operatorname{cyclic\_group}(6)) = 6$

  `group_order(cyclic_group(6))`

  In the solver, `group_order(cyclic_group(6))` gives `6`.

  [Open in the solver](https://hilberon.com/?q=group_order%28cyclic_group%286%29%29)

## Related functions

- [group_elements](https://hilberon.com/library/group_elements)

  The elements of a group, as permutations in cycle notation.
- [permutation_order](https://hilberon.com/library/permutation_order)

  The order of a permutation: the least power that is the identity.
- [is_irreducible](https://hilberon.com/library/is_irreducible)

  Test whether a polynomial cannot be factored, over the rationals or modulo a prime.
- [permutation_inverse](https://hilberon.com/library/permutation_inverse)

  The inverse of a permutation.
- [field_inverse](https://hilberon.com/library/field_inverse)

  The inverse of an element of a finite field.
- [field_add](https://hilberon.com/library/field_add)

  Sum of two elements of a finite field.

---
Source: https://hilberon.com/library/group_order
