Let $A$ and $B$ be two $n$ -by $-n$ matrices of numbers whose entries are denoted by $a_{i j}$ and $b_{i j},(1 \leq i, j \leq n)$, respectively. Define the product $A \times B$ to be the $n$ -by-n matrix $C$ whose entry $c_{i j}$ in row $i$ and column $j$ is given by
$$
c_{i j}=\sum_{p=1}^{n} a_{i p} b_{p j}, \quad(1 \leq i, j \leq n)
$$
If $k$ is a positive integer, define
$$
A^{k}=A \times A \times \cdots \times A \quad\left(k A^{\prime} s\right)
$$
Now let $A$ denote the adjacency matrix of a general graph of order $n$ with vertices $a_{1}, a_{2}, \ldots, a_{n} .$ Prove that the entry in row $i$, column $j$ of $A^{k}$ equals the number of walks of length $k$ in $G$ joining vertices $a_{i}$ and $a_{j}$.