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

 

Logo


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

0,1

COMMENTS

Also decimal expansion of 25/99.

Continued fraction expansion of A176052. - R. J. Mathar, Mar 08 2012

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)^n + 7/2 = 5*(n mod 2) + 2*((n+1) mod 2). - Paolo P. Lava, Oct 20 2006

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

a(n) = 2^(1-(-1)^n) + 1. [Bruno Berselli, Dec 29 2015]

PROG

(Maxima) makelist(if evenp(n) then 2 else 5, n, 0, 80); /* Martin Ettl, Nov 09 2012 */

(MAGMA) &cat [[2, 5]^^50]; // Bruno Berselli, Dec 29 2015

CROSSREFS

Cf. A010674: 2^(1-(-1)^n) - 1.

Sequence in context: A220342 A221676 A073054 * A021400 A059855 A082881

Adjacent sequences:  A010692 A010693 A010694 * A010696 A010697 A010698

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

EXTENSIONS

Edited by Bruno Berselli, Dec 29 2015

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 18 15:26 EDT 2019. Contains 325143 sequences. (Running on oeis4.)