OFFSET
1,6
LINKS
FORMULA
a(n) = n for n>5. G.f.: -x^3*(5*x^4-7*x^3+x^2+x-1) / (x-1)^2. - Colin Barker, Aug 05 2013
MAPLE
with(combinat): [ seq( n mod fibonacci(n), n=1..80) ];
MATHEMATICA
Table[Mod[n, Fibonacci[n]], {n, 60}] (* or *) LinearRecurrence[{2, -1}, {0, 0, 1, 1, 0, 6, 7}, 60] (* Harvey P. Dale, Jul 06 2019 *)
PROG
(PARI) a(n)=if(n>5, n, [0, 0, 1, 1, 0][n]) \\ Charles R Greathouse IV, Aug 22 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved