I have a product of the form:
$$ a_{1}^\alpha a_{2}^\beta a_{3}^\gamma ... a_{k}^\zeta $$
where each of $$\alpha,\beta,\gamma,\delta,...\zeta$$ can take values from 0 to n
$$ \alpha,\beta,\gamma,\delta,...,\zeta \in \{0, 1, 2, 3, ... , n \} $$
I'm using alpha, beta, .. because I have trouble with double subscripts otherwise I'd use \alpha_{1},...,\alpha_{n+1}
and $$a_{1}, a_{2}, ...,a_{k} $$ are coprime.
With other words the product has a variable length of elements and the set S contains all products resulted of the factors with permutated powers...
Now my first question is, how can mathematicy represent the set S?
$$ S = \{a_{1}^0a_{2}^0a_{3}^0...a_{k}^1,a_{0}^0a_{2}^0a_{3}^0...a_{k}^1,...,a_{1}^1a_{2}^0a_{3}^0...a_{k}^0,...,a_{1}^na_{2}^na_{3}^n...a_{k}^n\} $$
My second question is, how would I calculate the cardinality of this set?