The submissions stack has been unacceptably high for several months now. Please voluntarily restrict your submissions and please help with the editing. (We don't want to have to impose further limits.)
A125097
a(n) is k such that k*(2n+1) mod 1000 = 123, or 2n+1 if no such k exists.