Source: https://www.exetermathematicsschool.ac.uk/wp-content/uploads/The_Number_of_Possible_Keys_for_the_Hill_Cipher.pdf