Let $a_n$ be the amount of numbers consisting of $n$ digits from $\{1,2,3,4,5\}$ that are divisible by $3$ (giving an integer solution).
I'm asked to proof that the following recurrence relation holds for $a_n$: $$\begin{cases} a_n+a_{n-1}=2\cdot5^{n-1}\\a_1=1\end{cases}$$
I can't seem to find out how to start solving this problem, so can someone please give me a hint to where to start?