# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a076447 Showing 1-1 of 1 %I A076447 #8 Oct 13 2022 13:36:02 %S A076447 2,2,2,1,2,2,1,0,2,1,0,0,1,0,0,1,2,0,1,2,2,1,2,2,1,0,2,1,0,0,1,0,0,1, %T A076447 2,0,1,2,2,1,2,2,1,0,2,1,0,0,1,0,0,1,2,0,1,2,2,1,2,2,1,0,2,1,0,0,1,0, %U A076447 0,1,2,0,1,2,2,1,2,2,1,0,2,1,0,0,1,0,0,1,2,0,1,2,2,1,2,2,1,0,2,1,0,0,1,0,0 %N A076447 Let v(1)=v(2)=v(3)=1, v(n)=(-1)^n*sign(v(n-1)-v(n-2))*v(n-3), then a(n) =1+v(n). %H A076447 Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,-1,1). %F A076447 a(n) is a period-8 sequence with period (1, 0, 2, 1, 0, 0, 1, 0, 0, 1, 2, 0, 1, 2, 2, 1, 2, 2) %K A076447 nonn,easy %O A076447 1,1 %A A076447 _Benoit Cloitre_, Nov 24 2002 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE