Let $k\geq1$, and let $b_n$ be the number of words $\omega=v_1 \cdots v_n$ over the alphabet $\Sigma=\{1,\dots k\}$ such that $v_i\neq v_{i+1}$ for $1\leq i\leq n-1$.
I have to show with elementary counting techniques that $b_0=1$, and $b_n=k(k-1)^{n-1}$ for $n\geq1$ .
I must also specify the generating function $\sum \limits_{n\geq0}b_nx^n$
$ \begin{align*} f_b(x)&=\sum \limits_{n\geq0}b_nx^n \\ &=b_0 + \sum \limits_{n\geq1}b_nx^n \\ &=1+\sum \limits_{n\geq1}k(k-1)^{n-1}x^n\\ &=1+\sum \limits_{n\geq1}kx(k-1)^{n-1}x^{n-1}\\ &=1+\sum \limits_{n\geq1}kx((k-1)x)^{n-1}\\ &=1+kx\sum \limits_{n\geq0}((k-1)x)^{n} \\ &= ??? \end{align*} $
Thank you for any help.
As said in the comment the first problem is straightforward, as a hint take any word $w$ of length $n$ satisfying the requirements ($n\geq 2$) then you can write :
$$w=w'v_n $$
Where $w'$ is a word of length $n-1$ which satisfies the requirements. Now use this decomposition to show that for $n\geq 2$ you have :
$$b_n=b_{n-1}(k-1) $$
From this deduce the formula for 1 (you must compute $b_1$ to start).
You can also use this to compute the generating function $B:=\sum_nb_nX^n$ because you have :
$$B=b_0+b_1X+\sum_{n=2}^{\infty}b_nX^n=1+kX+\sum_{n=2}^{\infty}b_nX^n $$
$$B=1+kX+(k-1)\sum_{n=2}^{\infty}b_{n-1}X^n $$
$$B=1+kX+(k-1)X\sum_{n=2}^{\infty}b_{n-1}X^{n-1}=1+kX+(k-1)X\sum_{n=1}^{\infty}b_{n}X^{n} $$
$$B=1+kX+(k-1)X(B-b_0)$$
Remark that $b_0=1$.
Hence :
$$(1-(k-1)X)B=1+(k-(k-1))X=1+X $$
Hence :
$$B=\frac{1+X}{1-(k-1)X}=\frac{1-(k-1)X+kX}{1-(k-1)X}=1+\frac{kX}{1-(k-1)X}$$
This is the closed form of $B$. One can verify that this gives the same $B$ as before :
$$B=1+\sum_{n=1}^{\infty}k(k-1)^{n-1}X^n $$