login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010676 Period 2: repeat [0, 5]. 0
0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

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

Index entries for linear recurrences with constant coefficients, signature (0,1).

FORMULA

a(n) = 5/2*(1-(-1)^n) = 5*(n mod 2). - Paolo P. Lava, Oct 20 2006

G.f.: 5*x/((1-x)*(1+x)). - R. J. Mathar, Nov 21 2011

a(n) = a(n-2). - Wesley Ivan Hurt, Aug 19 2022

MATHEMATICA

PadRight[{}, 120, {0, 5}] (* Harvey P. Dale, Feb 18 2013 *)

PROG

(Magma) &cat [[0, 5]^^50]; // Bruno Berselli, Dec 10 2015

(PARI) a(n)=n%2*5 \\ Charles R Greathouse IV, Jul 23 2016

CROSSREFS

Sequence in context: A199092 A167260 A137520 * A071873 A036478 A059628

Adjacent sequences: A010673 A010674 A010675 * A010677 A010678 A010679

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 17:15 EDT 2023. Contains 361596 sequences. (Running on oeis4.)