Coding Challenge
Write a program that will determine the nth value of a recursively defined sequence as follows: n1 = 1, n2 = 2, n3 = 3, but nk+3 = nk+2 + nk+1 + nk (mod 10,000) for each k>3. That is we take the sum and divide by 10,000 and take the remainder as the nk+3.
You can write your code in any language. Just for fun. I'll take my hive rewards for this post, which might be as much as $1 and that will be the prize. I've already written one.
n4=6
n5=11
n30=2016
n50000=504
n1,000,000=9712
n1,000,000,000=3184
What would be the value of n2020202020202020?