OFFSET
1,3
COMMENTS
Sequence becomes periodic with period 193.
For which values of lambda does the sequence (f(n)) defined by f(1)=0, f(2)=1, f(n) = ceiling(lambda * |f(n-1) - f(n-2)|) ultimately become periodic?
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
FORMULA
For n >= 19, a(n+193) = a(n).
MATHEMATICA
RecurrenceTable[{a[1]==0, a[2]==1, a[n]==Ceiling[3/2 Abs[a[n-1]-a[n-2]]]}, a, {n, 90}] (* Harvey P. Dale, Mar 14 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 02 2004
EXTENSIONS
Corrected and extended by Harvey P. Dale, Mar 14 2015
STATUS
approved