There is a unique sequence of integers $a_n$ such that

For example, $a_{13} = 23321$ and $a_{1003} \equiv 231906014 \pmod{1234567891}$.

For $n = 10^{18} + 3$, find $a_n \bmod 1234567891$.