login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098816 a(1)=0, a(2)=1, a(n) = ceiling((3/2) * |a(n-1) - a(n-2)|). 1

%I #19 Dec 12 2022 01:32:54

%S 0,1,2,2,0,3,5,3,3,0,5,8,5,5,0,8,12,6,9,5,6,2,6,6,0,9,14,8,9,2,11,14,

%T 5,14,14,0,21,32,17,23,9,21,18,5,20,23,5,27,33,9,36,41,8,50,63,20,65,

%U 68,5,95,135,60,113,80,50,45,8,56,72,24,72,72,0,108,162,81,122,62,90,42,72,45,41,6,53,71,27,66,59,11

%N a(1)=0, a(2)=1, a(n) = ceiling((3/2) * |a(n-1) - a(n-2)|).

%C Sequence becomes periodic with period 193.

%C 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?

%H Amiram Eldar, <a href="/A098816/b098816.txt">Table of n, a(n) for n = 1..1000</a>

%F For n >= 19, a(n+193) = a(n).

%t 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 *)

%K nonn

%O 1,3

%A _Benoit Cloitre_, Nov 02 2004

%E Corrected and extended by _Harvey P. Dale_, Mar 14 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)