This question doesn't support checking answers.
258. A lagged Fibonacci sequence

Publish Date:

A sequence is defined as:

  • gk = 1, for 0 ≤ k ≤ 1999
  • gk = gk-2000 + gk-1999, for k ≥ 2000.

Find gk mod 20092010 for k = 1018.

Press F12 and use the "Console" tab to view the output of your codes.

Loading...