Let $G$ be a group that acts on a finite set $\Omega$. Let $V_{\Omega}$ be a $\mathbb{C}$-vector space whose basis elements $e_x$ are indexed by the elements $x$ of $\Omega$. In my book, it says that then we get a representation $\phi$ of $G$ on $V_{\Omega}$ by $$\phi(g) \sum_{x \in \Omega} a_xe_x = \sum_{x \in \Omega} a_xe_{g.x}$$
($a_x \in \mathbb{C}$). Furthermore, it is said that this type of representation is called a permutation representation.
Can someone explain this? I don't know what I am missing, but can someone explain this more detailed? Do I understand it correct that the homomorphism $G \to \text{GL}(n, \mathbb{C})$ is given by $g \mapsto BA^{-1}$ where $A$ is the matrix corresponding to the element $\sum_{x \in \Omega} a_xe_x$ and the same for $B$? I feel that I have understood this wrong.