OFFSET
0,3
MATHEMATICA
M = {{0, 1}, {1, 1}}; M1 = {{0, 0}, {1/10, 0}};
v[0] = {1, 1};
v[n_] := v[n] = M.v[n - 1] + Floor[M1.v[n - 1]];
Table[Mod[v[n][[1]], 10], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,uned
AUTHOR
Roger L. Bagula, Dec 02 2008
STATUS
approved