I wonder is there more effective algorithm than brute-force-search to find the first Fibonacci number with given remainder $~~r~~$ modulo given integer $~~m~~$.
$$ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, ...$$
If $~~m=6~~$ and $r=0$ then $F_{12} = 144$ is the first Fibonacci number such that $$~~F_{n} = 0 \pmod 6$$
If $~~m=7~~$ and $r=3$ then $F_{4} = 3$ is the first Fibonacci number such that $$~~F_{n} = 3 \pmod 7$$
I also wonder how to check if such Fibonacci number exists because if $m=8$ and $r=4$ then no Fibonacci number satisfies congruence $~~F_{n} = 4 \pmod 8$
Thanks in advance for any ideas.