login
Period 2: repeat (7,8).
2

%I #25 Dec 14 2023 06:06:18

%S 7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,

%T 7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,

%U 7,8,7,8,7,8,7,8,7,8,7,8,7

%N Period 2: repeat (7,8).

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).

%F a(n) = -1/2*(-1)^n + 15/2. - _Paolo P. Lava_, Oct 27 2006

%F G.f. (-7-8*x) / ( (x-1)*(1+x) ). - _R. J. Mathar_, Nov 21 2011

%t PadRight[{},120,{7,8}] (* _Harvey P. Dale_, Dec 15 2012 *)

%o (PARI) a(n)=7+n%2 \\ _Charles R Greathouse IV_, Dec 21 2011

%Y Cf. A176440.

%K nonn,easy

%O 0,1

%A _N. J. A. Sloane_