A010687 Repeat (1,6): Period 2.
1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6
Offset: 0
Examples
0.1616161616161616161616161616161616161616161616161...
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Maple
A010687:=n->(6^n mod 7); seq(A010687(n), n=0..100); # Wesley Ivan Hurt, May 19 2014
-
Mathematica
Table[Mod[6^n, 7], {n, 0, 100}] (* Wesley Ivan Hurt, May 19 2014 *)
-
PARI
a(n)=n%2*5+1 \\ Charles R Greathouse IV, Jul 13 2016
-
Sage
[power_mod(6,n,7)for n in range(0,100)] # Zerinvary Lajos, Nov 26 2009
Formula
G.f.: (1+6*x)/(1-x^2). - Philippe Deléham, Sep 25 2006
a(n) = 6^n mod 7. - Zerinvary Lajos, Nov 26 2009
E.g.f.: cosh(x) + 6*sinh(x). - Stefano Spezia, Feb 09 2025
Comments