A sequence of integers $f(n)$ has $f(0) =0$ and satisfies $f(n+2) = a f(n+1)+b f(n)$ for $n \geq 0$, where $a,b \in \mathbb{Z}$. For any positive integer $k$ with $\operatorname{gcd}(k, b)=1$, show that $f(n)$ is divisible by $k$ for infinitely many $n$.
Things I have tried so far: (Please correct me if I made any mistakes below, I am self learning :)
- Rewriting the given relation as $$f(n) = \frac{f(n+2) - a f(n+1)}{b}$$
Now for $f(n)$ to be divisible by $k$ it has to be that $f(n+1) - af(n+1) = mk$ for some $m \in \mathbb{Z}.$ which is equivalent to $f(n+2) \equiv a f(n+1) \operatorname{mod} k$ . Now since $f(n)$ is a integer sequence so $f(n+2) \equiv a f(n+1) \operatorname{mod} b$ but unsure how to proceed from here.
Also $k$ does not divide $b$ so my only observations are $pk + qb = \operatorname{gcd}(k,b)$ or that $bx \equiv 1 \operatorname{mod} k$ has a solution for some unknown $x.$
- Computing some terms to notice some pattern, however the only term common for the first few is $f(1)$ and no common structures that I can recognise.
I fail to proceed, so any hints or tips would be great help. Thanks!