796 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			796 B
		
	
	
	
	
	
	
	
id, challengeType, title, forumTopicId
| id | challengeType | title | forumTopicId | 
|---|---|---|---|
| 5900f46e1000cf542c50ff81 | 5 | Problem 258: A lagged Fibonacci sequence | 301906 | 
Description
gk = 1, for 0 ≤ k ≤ 1999 gk = gk-2000 + gk-1999, for k ≥ 2000. Find gk mod 20092010 for k = 1018.
Instructions
Tests
tests:
  - text: <code>euler258()</code> should return 12747994.
    testString: assert.strictEqual(euler258(), 12747994);
Challenge Seed
function euler258() {
  // Good luck!
  return true;
}
euler258();
Solution
// solution required