A010721 Period 2: repeat (5,10).
5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10, 5, 10
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1)
Crossrefs
Cf. A176325.
Programs
-
Mathematica
Table[5 + 5 Mod[n, 2], {n, 0, 50}] (* Jinyuan Wang, Feb 26 2020 *) PadRight[{},80,{5,10}] (* Harvey P. Dale, Mar 18 2022 *)
-
PARI
a(n)=n%2*5+5 \\ Charles R Greathouse IV, Jul 13 2016
Formula
a(n) = -5/2*(-1)^n + 15/2. - Paolo P. Lava, Oct 27 2006
From R. J. Mathar, Oct 20 2008: (Start)
a(n) = 5*A000034(n).
G.f.: 5(1+2x)/((1-x)(1+x)). (End)