login
A130806
Period 6: 1,4,3,-1,-4,-3.
3
1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3
OFFSET
0,2
COMMENTS
Nonsimple continued fractions of (10+sqrt 35)/13 = 1.2243138294... - R. J. Mathar, Mar 08 2012
FORMULA
From R. J. Mathar, Oct 15 2009: (Start)
a(n) = a(n-1) - a(n-2).
a(n) = A010892(n) + 3*A010892(n-1).
G.f.: (1+3*x)/(1-x+x^2). (End)
MATHEMATICA
PadRight[{}, 100, {1, 4, 3, -1, -4, -3}] (* Paolo Xausa, Dec 05 2023 *)
PROG
(PARI) a(n)=[1, 4, 3, -1, -4, -3][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
Sequence in context: A375754 A342813 A296218 * A200490 A016499 A295677
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Jul 16 2007
EXTENSIONS
Edited by N. J. A. Sloane, Sep 15 2007
STATUS
approved