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.

A122417 Factorials from an irrationality measure for e, with a(1) = 2.

Original entry on oeis.org

2, 6, 24, 120, 720, 24, 40320, 120, 5040, 720, 479001600, 120, 87178291200, 40320, 720, 5040, 6402373705728000, 5040, 2432902008176640000, 720, 40320, 479001600, 620448401733239439360000, 120, 39916800, 87178291200, 3628800, 40320
Offset: 1

Views

Author

Jonathan Sondow, Sep 03 2006

Keywords

Comments

If n > 1, then a(n) is the smallest factorial such that |e - m/n| > 1/a(n) for any integer m.
a(n) is the second smallest factorial divisible by n.

Examples

			a(6) = (S(6)+1)! = (3+1)! = 24.
		

Crossrefs

Programs

  • Mathematica
    nmax = 28;
    Do[m = 1; While[!IntegerQ[m!/n], m++]; a[n] = (m+1)!, {n, 1, nmax}];
    Array[a, nmax] (* Jean-François Alcover, Dec 04 2018 *)

Formula

a(n) = (A002034(n)+1)! = A122416(n)!.