%I #11 Dec 12 2023 08:47:19
%S 1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,
%T 2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1
%N Period 9: repeat 1, 2, 4, 3, 5, 3, 4, 2, 1.
%H <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,1).
%t PadRight[{},120,{1,2,4,3,5,3,4,2,1}] (* _Harvey P. Dale_, Dec 03 2017 *)
%o (PARI) a(n)=[1, 2, 4, 3, 5, 3, 4, 2, 1][n%9+1] \\ _Charles R Greathouse IV_, Jul 13 2016
%K nonn,easy
%O 0,2
%A _Paul Curtz_, Jan 10 2008