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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010718 Periodic sequence: repeat [5, 7]. 6
5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5, 7, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

Also continued fraction expansion of (35+sqrt(1365))/14. - Bruno Berselli, Sep 29 2011

LINKS

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

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

FORMULA

From Paolo P. Lava, Oct 20 2006: (Start)

a(n) = (-1)^(n+1) + 6.

a(n) = 7*(n mod 2)+5*((n+1) mod 2). (End)

From Vincenzo Librandi, Aug 01 2010: (Start)

a(n) = a(n-2) for n > 1, with a(0)=5, a(1)=7.

G.f.: (5+7*x)/((1-x)*(1+x)). (End)

MAPLE

seq(op([5, 7]), n=0..100); # Wesley Ivan Hurt, Dec 26 2016

MATHEMATICA

(-1)^(Range[0, 100] + 1) + 6 (* Wesley Ivan Hurt, Dec 26 2016 *)

PROG

(MAGMA) &cat [[5, 7]^^50]; // Wesley Ivan Hurt, Dec 26 2016

(PARI) for(n=0, 20, print1((-1)^(n+1) + 6, ", ")) \\ G. C. Greubel, Dec 26 2016

CROSSREFS

Sequence in context: A167133 A144567 A215732 * A247872 A306400 A090987

Adjacent sequences:  A010715 A010716 A010717 * A010719 A010720 A010721

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane

EXTENSIONS

Definition rewritten by Bruno Berselli, Sep 29 2011

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 19 11:12 EDT 2019. Contains 325158 sequences. (Running on oeis4.)