login
A010178
Continued fraction for sqrt(113).
2
10, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2, 1, 1, 1, 20, 1, 1, 1, 2, 2
OFFSET
0,1
FORMULA
G.f.: (10 + x + x^2 + x^3 + 2*x^4 + 2*x^5 + x^6 + x^7 + x^8 + 10*x^9)/(1-x^9). - Vincenzo Librandi, Jun 13 2013
a(n) = a(n-9), n >= 10. - Vincenzo Librandi, Jun 14 2013
MATHEMATICA
ContinuedFraction[Sqrt[113], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 11 2011 *)
CoefficientList[Series[(10 + x + x^2 + x^3 + 2 x^4 + 2 x^5 + x^6 + x^7 + x^8 + 10 x^9) / (1 - x^9), {x, 0, 100}], x] (* Vincenzo Librandi, Jun 13 2013 *)
PROG
(Magma) I:=[10, 1, 1, 1, 2, 2, 1, 1, 1, 20]; [n le 10 select I[n] else Self(n-9): n in [1..80]]; // Vincenzo Librandi, Jun 14 2013
CROSSREFS
Sequence in context: A284100 A279051 A332804 * A070596 A306363 A347119
KEYWORD
nonn,cofr,easy
STATUS
approved