%I #18 Dec 12 2023 08:10:28
%S 6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,
%T 0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,
%U 3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3,0,0,0,6,6,6,3,3,3
%N Period 9: repeat [6, 6, 6, 3, 3, 3, 0, 0, 0].
%H <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,-1,1,0,-1,1).
%F G.f.: 3*(2+x^3)/((1-x)*(1+x^3+x^6)). - _R. J. Mathar_, Jan 21 2009
%F a(n) = 3*((3-floor((n+3)/3)) mod 3). - _Wesley Ivan Hurt_, Apr 27 2020
%t PadRight[{},9*12,{6,6,6,3,3,3,0,0,0}] (* _Harvey P. Dale_, Dec 17 2012 *)
%o (PARI) a(n)=[6,6,6,3,3,3,0,0,0][n%9+1] \\ _Charles R Greathouse IV_, Jul 13 2016
%Y Cf. A130851.
%K nonn,easy
%O 0,1
%A _Paul Curtz_, Dec 28 2008
%E More periods from _R. J. Mathar_, Jan 21 2009