The increasing sequence $$3, 15, 24, 48, \ldots\,$$ consists of those positive multiples of 3 that are one less than a perfect square. What is the remainder when the 1994th term of the sequence is divided by 1000?

(第十二届AIME1994 第1题)