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!)
A010688 Period 2: repeat (1,7). 11
1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Continued fraction of (7 + sqrt 77)/14. - R. J. Mathar, Nov 21 2011
LINKS
FORMULA
From Paul Barry, May 23 2003: (Start)
a(n) = 4 - 3(-1)^n;
g.f.: (1+7x)/((1+x)(1-x));
e.g.f.: 4*exp(x)-3*exp(-x). (End)
a(n) = 7^n mod 8. - Vincenzo Librandi, Feb 07 2011
MATHEMATICA
PadRight[{}, 120, {1, 7}] (* Harvey P. Dale, Mar 21 2018 *)
PROG
(Sage) [power_mod(7, n, 8)for n in range(0, 92)] # Zerinvary Lajos, Nov 03 2009
(Magma) &cat[[1, 7]^^50]; // Vincenzo Librandi, Feb 07 2011 - Jul 23 2016
(PARI) a(n)=n%2*6+1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
Sequence in context: A296472 A171544 A344698 * A176415 A356948 A363150
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Formula corrected by Philippe Deléham, Oct 30 2008
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 April 25 09:38 EDT 2024. Contains 371967 sequences. (Running on oeis4.)