|
EXAMPLE
|
Example with n=3:
Fib(k): 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, ...
Fib(k) mod 3: 0,1,1,2,0,2,2,1,0,1,1,2,0,2,2,1,0,1,1,2,0,2,2,1,0
k mod 3: 0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0
Accepted k values indicated by x:
x,x,-,-,-,x,-,x,-,-,x,x,x,-,-,-,-,-,-,-,-,-,-,-,x
Accepted k values: 0, 1, 5, 7, 10, 11, 12, 14, 24
First differences of k values: 1, 4, 2, 3, 1, 1, 2, 10
After this the cycle repeats, so a(3) = 8.
|