cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A113874 a(3n) = a(3n-1) + a(3n-2), a(3n+1) = 2n*a(3n) + a(3n-1), a(3n+2) = a(3n+1) + a(3n).

Original entry on oeis.org

1, 0, 1, 1, 3, 4, 7, 32, 39, 71, 465, 536, 1001, 8544, 9545, 18089, 190435, 208524, 398959, 4996032, 5394991, 10391023, 150869313, 161260336, 312129649, 5155334720, 5467464369, 10622799089, 196677847971, 207300647060
Offset: 0

Views

Author

N. J. A. Sloane, Jan 27 2006

Keywords

Comments

A113873(n)/a(n) -> e.
Without the first two terms, same as A007677 (denominators of convergents to e). - Jonathan Sondow, Aug 16 2006

Crossrefs

Cf. A113873.

Programs

  • Maple
    a[0]:=1: a[1]:=0: a[2]:=1: for n from 3 to 34 do if n mod 3 = 0 then a[n]:=a[n-1]+a[n-2] elif n mod 3 = 1 then a[n]:=2*(n-1)*a[n-1]/3+a[n-2] else a[n]:=a[n-1]+a[n-2] fi: od: seq(a[n],n=0..34); # Emeric Deutsch, Jan 28 2006
  • Mathematica
    a[0] = 1; a[1] = 0; a[n_] := a[n] = Switch[ Mod[n, 3], 0, a[n - 1] + a[n - 2], 1, 2(n - 1)/3*a[n - 1] + a[n - 2], 2, a[n - 1] + a[n - 2]]; a /@ Range[0, 30]
    Join[{1,0},Denominator[Convergents[E,30]]] (* Harvey P. Dale, Aug 09 2014 *)

Extensions

More terms from Robert G. Wilson v and Emeric Deutsch, Jan 28 2006