A010725 Period 2: repeat (6,9).
6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6, 9, 6
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Cf. A176402.
Programs
-
Magma
&cat [[6, 9]^^50]; // Vincenzo Librandi, Feb 27 2020
-
Mathematica
Table[6 + 3 Mod[n, 2], {n, 0, 50}] (* Jinyuan Wang, Feb 26 2020 *) PadRight[{},100,{6,9}] (* Harvey P. Dale, Jun 03 2025 *)
-
PARI
a(n)=6+n%2*3 \\ Charles R Greathouse IV, Dec 21 2011
Formula
a(n) = -(3/2)*(-1)^n + 15/2. - Paolo P. Lava, Oct 27 2006
G.f.: ( -6-9*x ) / ( (x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011
a(n) = 6 + 2^(1-(-1)^n) - 1. - Vincenzo Librandi, Feb 27 2020