A041017 Denominators of continued fraction convergents to sqrt(12).
1, 2, 13, 28, 181, 390, 2521, 5432, 35113, 75658, 489061, 1053780, 6811741, 14677262, 94875313, 204427888, 1321442641, 2847313170, 18405321661, 39657956492, 256353060613, 552364077718, 3570537526921
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..200
- Index entries for linear recurrences with constant coefficients, signature (0,14,0,-1).
Programs
-
Maple
with (numtheory): seq( nthdenom(cfrac(sin(Pi/6)*tan(Pi/3),25),i)-nthnumer(cfrac(sin(Pi/6)*tan(Pi/3),25),i), i=2..24 ); # Zerinvary Lajos, Feb 10 2007
-
Mathematica
Table[Denominator[FromContinuedFraction[ContinuedFraction[Sqrt[12],n]]],{n,1,50}] (* Vladimir Joseph Stephan Orlovsky, Mar 16 2011 *) Denominator[Convergents[Sqrt[12],50]] (* Harvey P. Dale, Feb 18 2012 *) a0[n_] := ((7-4*Sqrt[3])^n*(2+Sqrt[3])-(-2+Sqrt[3])*(7+4*Sqrt[3])^n)/4 // Simplify a1[n_] := 2*Sum[a0[i], {i, 1, n}] Flatten[MapIndexed[{a0[#],a1[#]}&,Range[11]]] (* Gerry Martens, Jul 10 2015 *)
Formula
G.f.: (1+2*x-x^2)/(1-14*x^2+x^4). - Colin Barker, Jan 01 2012
From Gerry Martens, Jul 11 2015: (Start)
Interspersion of 2 sequences [a0(n),a1(n)]:
a0(n) = ((7-4*sqrt(3))^n*(2+sqrt(3)) - (-2+sqrt(3))*(7+4*sqrt(3))^n)/4.
a1(n) = 2*Sum_{i=1..n} a0(i). (End)
Comments