0,4

Table of n, a(n) for n=0..84.

a(n) = a(n-1) mod 13 + a(n-2) mod 8, with a(0) = 0 and a(1) = 1.

a[0] = 0; a[1] = 1; a[n_] := a[n] = Mod[a[n - 1], 13] + Mod[a[n - 2], 8] aout = Table[a[n], {n, 0, 100}]

Cf. A000045.

Sequence in context: A018149 A152909 A328597 * A261694 A287533 A072123

Adjacent sequences: A118601 A118602 A118603 * A118605 A118606 A118607

nonn

Roger L. Bagula, May 17 2006

Edited by Michel Marcus, Jan 30 2013

approved