|
|
A130196
|
|
Period 3: repeat [1, 2, 2].
|
|
24
|
|
|
1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Denominator of x(n) = x(n-1) + x(n-2), x(0)=0, x(1)=1/2; numerator = A167808;
Continued fraction expansion of (5+sqrt(85))/10. - Klaus Brockhaus, May 07 2010
|
|
LINKS
|
|
|
FORMULA
|
a(n+3) = a(n) with a(0)=1, a(1)=a(2)=2.
G.f.: (1+2*x+2*x^2)/(1-x)*(x^2+x+1). - R. J. Mathar, Nov 14 2007
E.g.f.: (5*exp(x) - 2*exp(-x/2)*cos(sqrt(3)*x/2))/3. - Stefano Spezia, Jun 03 2021
|
|
MAPLE
|
|
|
MATHEMATICA
|
Table[Floor[5 (n + 1)/3] - Floor[5 n/3], {n, 0, 100}] (* Wesley Ivan Hurt, Jul 24 2014 *)
Denominator[LinearRecurrence[{1, 1}, {0, 1/2}, 110]] (* or *) PadRight[{}, 110, {1, 2, 2}] (* Harvey P. Dale, Aug 08 2014 *)
LinearRecurrence[{0, 0, 1}, {1, 2, 2}, 105] (* Ray Chandler, Aug 03 2015 *)
|
|
PROG
|
(Magma) [Floor(5*(n+1)/3)-Floor(5*n/3) : n in [0..100]]; // Wesley Ivan Hurt, Jul 24 2014
|
|
CROSSREFS
|
Cf. A177347 (decimal expansion of (5+sqrt(85))/10).
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|