Frankly, I have a hard time imagining what it is.
In his Cours d'arithmétique(1970), Jean-Pierre Serre defines $$\forall n\geq 1, A_n:=\mathbb Z/3^n\mathbb Z$$
Let us consider $A_1$. Serre's talking about "discrete topology on $A_1$", without even defining it. I've been looking: if I'm not mistaken, this is the topology defined by the set of parts of $A_1$ $$\tau_1:=\{ \emptyset, \{0\},\{1\},\{2\},\{0,1\},\{0,2\},\{1,2\},\{0,1,2\} \}$$ It is clear that $$\forall n\geq1(A_n,\tau_n) \text{ is separated space}$$ So, every $A_n $ is compact (finited unions of points) . Then he writes :" If we give $\prod_{}^{}A_n$ the product topology , $Z_3$ has a topology that makes it a compact space (because it is closed in a compact space)."
I know that a closed space in a compact space is compact. The product topology $\tau$ is defined, I believe, by the set of sets of the form $$O_1\times O_2\times...\times O_m\times A_{m+1}\times A_{m+2\times...}$$
1.- Why $\prod_{}^{}A_n$ is compact ?
2.- Why $\mathbb Z_3$ is closed in $\prod_{}^{}A_n$ ?
Thank you in advance for your help.