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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010678 Period 2: repeat (0,7). 0
0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 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)=(7/2)*[1-(-1)^n]; a(n)=7*(n mod 2). - Paolo P. Lava, Oct 20 2006

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

MATHEMATICA

PadRight[{}, 120, {0, 7}] (* Harvey P. Dale, Oct 01 2013 *)

PROG

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

CROSSREFS

Sequence in context: A188928 A036479 A085966 * A010503 A158857 A255727

Adjacent sequences:  A010675 A010676 A010677 * A010679 A010680 A010681

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 17 18:31 EDT 2019. Contains 325109 sequences. (Running on oeis4.)