To solve the problem, we first recognize the sequence as a Fibonacci-like sequence starting with (a_1=1) and (a_2=2), where each term is the sum of the previous two. We need the sum of squares of the first 20 terms modulo 1000.
Key Insight: Sum of Squares Formula
For the sequence (a_n) (where (an=F{n+1}) for standard Fibonacci sequence (F)), the sum of squares of the first (n) terms is:
[S(n) = F{n+1}F{n+2} - 1]
Here, (F_1=1, F_2=1, F_3=2, \ldots)
Compute (F{21}) and (F{22}) Modulo 1000
We calculate the Fibonacci sequence up to (F{22}) (mod 1000):
[F{1}=1, F_2=1, F_3=2, F_4=3, F_5=5, F_6=8, F_7=13, F_8=21, F9=34, F{10}=55, F{11}=89, F{12}=144, F{13}=233, F{14}=377, F{15}=610, F{16}=987, F{17}=597, F{18}=584, F{19}=181, F{20}=765, F{21}=946, F{22}=711]
Calculate the Sum Modulo 1000
[S(20) = F{21}F{22} - 1 = 946 \times 711 - 1]
[946 \times 711 = 672606]
[672606 - 1 = 672605]
[672605 \mod 1000 = 605]
Answer: (\boxed{605})


作者声明:本文包含人工智能生成内容。