|
| |
|
|
A010688
|
|
Period 2: repeat (1,7).
|
|
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, 7, 1
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
COMMENTS
| Continued fraction of (7+ sqrt 77)/14. - R. J. Mathar, Nov 21 2011
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (0,1).
|
|
|
FORMULA
| a(n)=4-3(-1)^n; G.f.: (1+7x)/((1+x)(1-x)); E.g.f.: 4exp(x)-3exp(-x). - Paul Barry (pbarry(AT)wit.ie), May 23 2003
a(n)=7*(n mod 2)+(n+1) mod 2 - Paolo P. Lava (paoloplava(AT)gmail.com), Oct 20 2006
a(n)=7^n mod 8. [From Vincenzo Librandi, Feb 07 2011]
|
|
|
PROG
| (Other) sage: [power_mod(7, n, 8)for n in xrange(0, 92)] # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Nov 03 2009]
(MAGMA)[7^n mod 8: n in [0..80]]; [From Vincenzo Librandi, Feb 07 2011]
|
|
|
CROSSREFS
| Sequence in context: A083530 A191562 A171544 * A176415 A198219 A198580
Adjacent sequences: A010685 A010686 A010687 * A010689 A010690 A010691
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com).
|
|
|
EXTENSIONS
| Corrected formula . - Philippe DELEHAM (kolotoko(AT)wanadoo.fr), Oct 30 2008
|
| |
|
|