I would like to count the number of unique $k$-dimensional subspaces of the form $VD$, where $V\in \text{GL}(n,\mathbb Z/({p^m}))$ is some $n\times n$ matrix defined over the ring of integers modulo $p^m$, for some prime $p$ and integer $m$, i.e., $\mathbb Z/(p^m)$. Furthermore, $D$ is some predefined diagonal matrix with elements $d_i\in\{p^0,p^1, \dots,p^m\}$.
In other words, given $D=\text{diag}(\mathbf d)$, defining the set
$$S_{n,p^m}(\mathbf d)=\{VD : V\in \text{GL}(n,\mathbb Z/(p^m)),D=\text{diag}(\mathbf d) \},$$
what is the number of elements $S_{n,p^m}(\mathbf d)$ that are unique up to linear transformations on the right-hand side?
Defining $$\begin{aligned}T_{n,p^m}(\mathbf d)=S_{n,p^m}(\mathbf d)/GL(n,\mathbb Z/({p^m}))&=\{S_{n,p^m}(\mathbf d)R:R \in GL(n,\mathbb Z/(p^m))\}\\ &=\{\{XR:X\in S_{n,p^m}(\mathbf d)\}:R \in GL(n,\mathbb Z/(p^m))\},\end{aligned}$$ the question is to find the cardinality of $T_{n,p^m}(\mathbf d)$, i.e., $|T_{n,p^m}(\mathbf d)|$. The answer will be some function depending on $\mathbf d$, $n$ and $p^m$.
General Examples
- if $d_i=1$ for all $i$, then we have the trivial case of a single $n$-dimensional subspace.
- if $d_i=1$ for all $i\le k$ with $d_i=0$ otherwise, then we can count the number of $k$-dimensional subspaces on $\mathbb Z_{p^m}$ according to this answer.
For other choices of $D$ the problem becomes complicated.
Solution attempts
I originally tried to solve the problem by considering $V$ as defined in terms of $m$ matrices over the field $\mathbb Z_p$ but I am not sure this method avoids overcounting.
Alternatively, consider the column Hermite normal form of $VD$, which is a unique triangular matrix $H_{VD}=VDU$, with $U$ a unimodular matrix. If there exists some $R$ such that $VDR=V'D$ then the Hermite normal form of $VD$ and $V'D$ will be the same. Hence, we can count the number of Hermite normal form that exist.
The question then becomes, how many unique matrices $H$ exist, where each $H$ is a Hermite normal form of a matrix of the form $VD$?
Specific example
As a simple example of what I mean, consider $n=2$ with $p^m=2^4$. If I define $\mathbf d=(0,1)^T$, I want to count all the unique subspaces of the form $VD$ where $V=(\mathbf v_1,\mathbf v_2)$, where we see that $VD=(0,\mathbf v_2)$. Hence, in this case, the size of $T_{2,2^4}(\mathbf d)$, with $\mathbf d=(0,1)^T$ is equivalent to the number of subpaces of $GL(2,\mathbb Z/(16))$ consisting of only one vector $\mathbf v_2$. The question becomes, how many choices of $\mathbf v_2$ exist such that the set $\{(0,\mathbf v_2) R : R\in GL(n,\mathbb Z/({p^m}))\}$ is unique? In this case, this is equivalent to the question of the number of unique sets of the form $\{R^T\mathbf v_2 : GL(n,\mathbb Z/(p^m))\}$, which is in turn equivalent to asking the number of unique $1$-dimensional subspaces of the $n$-dimensional space $GL(n,\mathbb Z/({p^m}))$.