login
This site is supported by donations to The OEIS Foundation.

 

Logo


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 (list; constant; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Also decimal expansion of 1/33 = .030303030...

LINKS

Table of n, a(n) for n=0..80.

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

a(n) = a(n-2) for n > 1. G.f.: 3*x/(1 - x^2). - Chai Wah Wu, Jun 04 2016

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

N. J. A. Sloane.

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified October 21 11:30 EDT 2017. Contains 293693 sequences.