|
| |
|
|
A130782
|
|
Periodic sequence with period 1 1 2 1 1 .
|
|
2
| |
|
|
1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,3
|
|
|
COMMENTS
| Continued fraction expansion of (4+sqrt(65))/7. [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Apr 30 2010]
|
|
|
LINKS
| Index entries for sequences related to linear recurrences with constant coefficients, signature (0,0,0,0,1).
|
|
|
FORMULA
| a(n)=(1/25)*{3*(n mod 5)+3*[(n+1) mod 5]+8*[(n+2) mod 5]-2*[(n+3) mod 5]+3*[(n+4) mod 5]}, with n>=0. - Paolo P. Lava (paoloplava(AT)gmail.com), Aug 28 2007
|
|
|
PROG
| (PARI) a(n)=1+(n%5==2) \\ Charles R Greathouse IV, Jun 02 2011
|
|
|
CROSSREFS
| Cf. A176976 (decimal expansion of (4+sqrt(65))/7). [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Apr 30 2010]
Sequence in context: A202053 A074064 A139549 * A177706 A055457 A032542
Adjacent sequences: A130779 A130780 A130781 * A130783 A130784 A130785
|
|
|
KEYWORD
| nonn,easy,less
|
|
|
AUTHOR
| Paul Curtz (bpcrtz(AT)free.fr), Jul 15 2007
|
| |
|
|