This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A010674 Period 2: repeat (0,3). 9
 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0 (list; constant; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Also decimal expansion of 1/33 = .030303030... LINKS Index entries for linear recurrences with constant coefficients, signature (0,1). FORMULA a(n) = 3/2*(1-(-1)^n); a(n) = 3*(n mod 2). - Paolo P. Lava, Oct 20 2006 a(n) = (A010698(n)/2)-1. - Martin Ettl, Nov 11 2012 a(n) = 2^(1-(-1)^n) - 1. - Bruno Berselli, Dec 29 2015 From Chai Wah Wu, Jun 04 2016: (Start) a(n) = a(n-2) for n > 1. G.f.: 3*x/(1 - x^2). (End) E.g.f.: 3*sinh(x). - Ilya Gutkovskiy, Jun 04 2016 PROG (PARI) a(n)=n%2*3 \\ Charles R Greathouse IV, Nov 20 2011 (Maxima) makelist(if evenp(n) then 0 else 3, n, 0, 30); /* Martin Ettl, Nov 09 2012 */ (MAGMA) &cat [[0, 3]^^50]; // Bruno Berselli, Dec 29 2015 CROSSREFS Cf. A010695: 2^(1-(-1)^n) + 1. Sequence in context: A273128 A183035 A115634 * A021037 A053387 A221170 Adjacent sequences:  A010671 A010672 A010673 * A010675 A010676 A010677 KEYWORD nonn,cons,easy AUTHOR EXTENSIONS More terms from Paolo P. Lava, Oct 20 2006 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 21 08:47 EDT 2019. Contains 328292 sequences. (Running on oeis4.)