%I #26 Dec 14 2023 06:04:38
%S 4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,
%T 10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,4,10,
%U 4,10,4,10,4,10,4,10,4,10,4,10
%N Period 2: repeat (4,10).
%C Continued fraction of 2 + sqrt(110)/5 = A176220. - _R. J. Mathar_, Nov 21 2011
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1)
%F a(n) = -3*(-1)^n + 7. - _Paolo P. Lava_, Oct 20 2006
%F G.f. ( -4-10*x ) / ((x-1)*(1+x)). - _R. J. Mathar_, Nov 21 2011
%t Table[4 + 6 Mod[n, 2], {n, 0, 50}] (* _Jinyuan Wang_, Feb 26 2020 *)
%t PadRight[{},80,{4,10}] (* _Harvey P. Dale_, Jul 12 2021 *)
%o (PARI) a(n)=n%2*6+4 \\ _Charles R Greathouse IV_, Jul 13 2016
%K nonn,easy
%O 0,1
%A _N. J. A. Sloane_
|