I am finding a solution of the following problem. I would like you to give a short proof.
Let A be the adjacency matrix of a d-regular graph G. Prove that d is an eigenvalue of A with multiplicity at least the number of connected components of G.
If I understood correctly the question, the answer is obvious. Denote by $n$ the number of the components of $G$. For every component $C$ of $G$, take the vector $[C]$ whose coefficient corresponding to a vertex $v\in G$ equals $1$ if $v\in C$, and $0$, otherwise. It is immediate that $A[C]=d[C]$. The linear subspace $S$ generated by all $[C]$'s is $n$-dimensional and $As=ds$ for any $s\in S$.