cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A010686 Periodic sequence: repeat [1, 5].

Original entry on oeis.org

1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1
Offset: 0

Views

Author

Keywords

Comments

Also continued fraction expansion of (5+3*sqrt(5))/10. - Bruno Berselli, Sep 30 2011
From Gary Detlefs, May 19 2014: (Start)
This sequence can be generated by an infinite number of formulas all having the form a^(b*n) mod c subject to the following conditions. The number a is congruent to either 5,11,13,17,21, or 23 mod 24 and b is of the form 2k+1.
1. If a = 5 mod 6 then c = 6.
2. If a = 5 mod 8 then c = 8.
3. If a = 5 mod 12 then c = 12.
4. If a = 5 mod 24 then c = 24.
For example: a(n)= 13^(5*n) mod 8, a(n)= 29^(7*n) mod c where c is any number in {6,8,12,24}. (End)
Decimal expansion of 5/33. - Stefano Spezia, Feb 09 2025

Examples

			0.15151515151515151515151515151515151515151...
		

Crossrefs

Cf. A000364.

Programs

Formula

From Paul Barry, Jun 03 2003: (Start)
G.f.: (1+5*x)/((1-x)*(1+x)).
E.g.f.: 3*exp(x)-2*exp(-x).
a(n) = 3-2(-1)^n.
a(n) = 5^((1-(-1)^n)/2) = 5^(ceiling(n/2)-floor(n/2)). (End)
a(n) = 5^n mod 24. - Paul Curtz, Jan 09 2008
a(n) = 5^n mod 12. - Zerinvary Lajos, Nov 25 2009
a(n) = A000364(n+1) mod 10. - Paul Curtz, Feb 09 2010
a(n) = 11^n mod 6. - Vincenzo Librandi, Jun 01 2016

Extensions

Definition rewritten by Bruno Berselli, Sep 30 2011