I hope you don't mind if I get a few thoughts out there. The first question we need to ask is:
Are there always solutions to the integer solutions to $(an+b)/c=d$ for
a given $(a,b,c)$?
No: $(3,1,9)$ is a counterexample.
Are there any conditions where there are solutions?
Yes: If $\gcd(a,c)=1$ and $\gcd(b,c)=1$ then $n$ must solve $an\equiv c-b \mod c$ since $a,b$ are relatively prime with $c$ we are guaranteed that $n$ exists up to modulo $c$.
Say we find a solution, how can we get the next one?
$n_{k+1} = n_{k}+\frac{c}{\gcd(a,c)}$if you multiply that expression by $a$ you are guaranteed to get $a\cdot n_k+b+\frac{ac}{\gcd(a,c)}$. The left part is divisible by $c$ since they were last time, the right part of this expression is guaranteed to be divisible by $c$ since $a$ is divisible by $\gcd(a,c)$ by definition of divisor.
I can therefore give you some idea of what your final answer will look like: $f(a,b,c,k) = f(a,b,c,k-1)+\frac{ac}{\gcd(a,c)}\rightarrow f(a,b,c,k) = f(a,b,c,1)+(k-1) \frac{ac}{\gcd(a,c)}$
Hunting for $f(a,b,c,1) = f(a',b',c')$ where $x' = \frac{x}{\gcd(a,b,c)}$:
We search for $(c'-b')(a')^{-1} \mod c'$. If $a'$ is relatively prime to $c'$ then the answer is $(c'-b')(a')^{\phi(c')-1}\mod c'$ where $\phi(c')$ is the euler totient function evaluated at $c'$. If $a'$ is not relatively prime to $c'$ then there is no solution.
Answer is thus:
$f(a,b,c,k) = f(a',b',c',k) = [(c'-b')(a')^{\phi(c')-1}\mod c']+(k-1)\frac{a'c'}{\gcd(a',c')}$