|
|
A082115
|
|
Fibonacci sequence (mod 3).
|
|
12
|
|
|
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, 1, 1, 2, 0, 2, 2, 1, 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, 1, 1, 2, 0, 2, 2, 1, 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, 1, 1, 2, 0, 2, 2, 1, 0, 1, 1, 2, 0, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
FORMULA
|
Sequence is periodic with Pisano period 8.
a(n) = 1-floor(n/8)+floor((n-1)/8)+floor((n-3)/8)-2*floor((n-4)/8) +2*floor((n-5)/8)-floor((n-7)/8). - Hieronymus Fischer, Jul 01 2007
a(n) = 1+((n mod 8)+((n+1)mod 8)-2*((n+3)mod 8)+2*((n+4)mod 8) -((n+5)mod 8) -((n+7)mod 8))/8. - Hieronymus Fischer, Jul 01 2007
|
|
MATHEMATICA
|
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 1}, {0, 1, 1, 2, 0, 2, 2, 1}, 103] (* Ray Chandler, Aug 27 2015 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|