OFFSET
1,4
COMMENTS
Let r(k,n)=floor(e*k!)-n*floor(e*k!/n) then for any n integer>0, sequence r(k,n) is n-periodic. Sequence gives periods of r(k,n) for fixed n.
EXAMPLE
If n=7, r(k,7) is sequence 2, 5, 2, 2, 4, 4, 1, 2, 5, 2, 2, 4, 4, 1, 2, 5, 2, 2, 4, 4, 1, 2, 5, 2, 2, 4, 4, 1, 2, 5...... 7-periodic with period: (2, 5, 2, 2, 4, 4, 1,)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Benoit Cloitre, Jun 22 2003
STATUS
approved