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!)
A010700 Period 2: repeat (2,10). 5
2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Continued fraction expansion of A176057. - R. J. Mathar, Mar 08 2012
LINKS
FORMULA
a(n) = -4*(-1)^n + 6. Paolo P. Lava, Oct 20 2006
G.f. (2+10*x)/((1-x)*(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = 3^(1-(-1)^n) + 1. - Bruno Berselli, Dec 29 2015
a(n) = 2 + 8*(n mod 2) = 2 + 8*A000035(n). - M. F. Hasler, Feb 27 2020
MAPLE
A010700 := n -> 2 + irem(n, 2)*8; # M. F. Hasler, Feb 27 2020
MATHEMATICA
PadRight[{}, 100, {2, 10}] (* M. F. Hasler, Feb 27 2020 *)
PROG
(PARI) a(n)=2+n%2*8 \\ Charles R Greathouse IV, Dec 21 2011
(PARI) apply( {A010700(n)=2+bittest(n, 0)<<3}, [0..99]) \\ M. F. Hasler, Feb 27 2020
(Magma) &cat [[2, 10]^^35]; // Bruno Berselli, Dec 29 2015
CROSSREFS
Cf. A010679: 3^(1-(-1)^n) - 1.
Equals 2 + A010679 = 2 + 8*A000035.
Sequence in context: A102775 A154032 A221551 * A121521 A280033 A347096
KEYWORD
nonn,easy
AUTHOR
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:42 EDT 2024. Contains 371254 sequences. (Running on oeis4.)