Counting invertible matrices of 2x2 provided Zn

  • Thread starter Thread starter bsc.j.j.w
  • Start date Start date
  • Tags Tags
    Counting Matrices
Click For Summary

Homework Help Overview

The discussion revolves around counting the number of invertible 2x2 matrices over the ring \(\mathbb{Z}_{32}\). The original poster explores various strategies to determine the count, including calculating total matrices and identifying non-invertible cases based on determinant conditions.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • The original poster attempts to count invertible matrices by calculating total matrices and subtracting non-invertible cases. They express uncertainty about counting cases where the determinant equals zero and seek clarification on the application of group theory in this context.
  • Some participants question the applicability of the Wikipedia formula for counting invertible matrices, noting that \(\mathbb{Z}_{32}\) is not a field, which complicates the reasoning.
  • Others suggest reconsidering the assumptions made about the invertibility of certain matrices and the implications of linear dependence in the context of the second column.

Discussion Status

The discussion is ongoing, with participants exploring different interpretations and approaches to the problem. Some guidance has been offered regarding the limitations of applying certain mathematical principles to \(\mathbb{Z}_{32}\), but no consensus has been reached on the correct counting method or the validity of the original poster's program results.

Contextual Notes

Participants note the challenges posed by the properties of \(\mathbb{Z}_{32}\), particularly regarding the inability to treat it as a field, which affects the counting of invertible matrices. There is also mention of a potential discrepancy in the results obtained from computational methods versus theoretical expectations.

bsc.j.j.w
Messages
3
Reaction score
0
Dear forum members,

I have a small problem counting all the invertible matrices of the size 2x2 providing \mathbb{Z}_{n}. This problem was difficult for me so I decided to go on counting how many invertible 2x2 matrices there are for n=32. My strategy to solve the problem was first by calculating all possible matrices and then subtracting all the matrices for which the deteminant is equal to zero.

Given matrix \begin{pmatrix}a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2}\end{pmatrix} in \mathbb{Z}_{32}, there are 32^4 possible matrices.

The cases in which the determinant is equal to zero are:

If a_{1,1} = 0, a_{1,2} = 0, a_{2,1}=0, a_{2,2}=0, which is eqaul to one case.

If there are three elements equal to zero and one not, the possibilities of that are {4 choose 3} \cdot 32.

If there are two elements equal to zero, provided they are not diagonally of each other ((a_{1,1} = 0 \vee a_{2,2} = 0) \wedge (a_{1,2} = 0 \vee a_{2,1} = 0)), the number of possibilities of that are ({4 \choose 2} - 2) \cdot 32^2.

Now how can I continue to calculate the other number of possibilities? I am not sure how can I count the possibilities when a_{1,1} \cdot a_{2,2} = a_{1,2} \cdot a_{2,1}.

I have already searched the forum, there was I think one similar case (see: showthread.php?t=470215), but there r is a prime and I don't actually get how they suddenly got to that formula, furtheremore the comments suggest that the question is ill-formulated.

Furthermore I have made a small program capable of finding the solution of all non-invertible matrices for this question, however strangely it came up with the answer 7600, which is too low I think, but correct me if I'm wrong. It's written in JAVA.

Thank you for your responses!

PS: I cannot post links, so I post a partial link, the begin section should be equal to the link of this forum. If anyone would like to see the program, the pastebin code is 01uKfAKF.
 
Physics news on Phys.org
I have another clue. I found that this has something to do with General Linear Group, however I am unfamiliar with group theory. Even though the lack of understanding of group theory, I came across the explanation of how to count invertible matrices.

There are accordingly to Wikipedia (q^n-1)(q^n-q)... invertible matrices. However I do not understand one small thing, how come there are exactly q possibilities in which the second column can be linearly dependent of the previous column? I understand that the first column cannot be zero, hence the -1.

PS: I'm definitely sure my program is somehow wrong :(, as 32^4 - 7600 is way off the answer I got from apply the formula from the wikipedia page.
 
There's another problem with your example. The wiki article is about matrices over finite fields. Z32 isn't a field. You can't generally divide in it. For example, 2x=1 has no solution, so you can't divide by 2.
 
So, if I continue with my reasoning as with my first post, how should I continue? And is this countable without using computer programs?

The answer should be (3/8)*32^4.
 
Last edited:
bsc.j.j.w said:
So, if I continue with my reasoning as with my first post, how should I continue? And is this countable without using computer programs?

The answer should be (3/8)*32^4.

I don't know offhand. Are you sure you are counting them right with a computer? The matrix [[2,0],[0,1]] is not invertible in Z32, even though it has a nonzero determinant.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
3K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K