A228825 Delayed continued fraction of e.
2, 2, -1, -1, -1, -2, 2, -2, 1, 1, 1, 2, -2, 2, -2, 2, -1, -1, -1, -2, 2, -2, 2, -2, 2, -2, 1, 1, 1, 2, -2, 2, -2, 2, -2, 2, -2, 2, -1, -1, -1, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 1, 1, 1, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -1, -1, -1, -2, 2, -2
Offset: 0
Examples
Convergents: 2, 5/2, 3, 8/3, 11/4, 30/11, 49/18, 68/25, 19/7, 87/32, 106/39, 299/110, 492/181,...
Programs
-
Mathematica
$MaxExtraPrecision = Infinity; x[0] = E; s[x_] := s[x] = If[FractionalPart[x] < 1/2, Ceiling[x], Floor[x]]; a[n_] := a[n] = s[Abs[x[n]]]*Sign[x[n]]; x[n_] := 1/(x[n - 1] - a[n - 1]); t = Table[a[n], {n, 0, 100}]
Comments