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.

A048764 Largest factorial <= n.

Original entry on oeis.org

1, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24
Offset: 1

Views

Author

Charles T. Le (charlestle(AT)yahoo.com)

Keywords

References

  • J. Castillo, Other Smarandache Type Functions: Inferior/Superior Smarandache f-part of x, Smarandache Notions Journal, Vol. 10, No. 1-2-3 (1999), 202-204.

Crossrefs

Programs

  • Mathematica
    Table[k = 1; While[(k + 1)! <= n, k++]; k!, {n, 80}] (* Michael De Vlieger, Aug 30 2016 *)
  • PARI
    a(n)=my(t=1,k=1);while(t<=n,t*=k++);t/k \\ Charles R Greathouse IV, Sep 19 2012
    
  • Python
    from sympy import factorial as f
    def a(n):
        k=1
        while f(k + 1)<=n: k+=1
        return f(k)
    print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jun 21 2017, after Mathematica code

Formula

n log log n / log n << a(n) <= n. - Charles R Greathouse IV, Sep 19 2012
From Amiram Eldar, Aug 02 2022: (Start)
Sum_{n>=1} 1/a(n)^m = Sum_{k>=1} k/k!^m (Li Jie, 2004).
In particular:
Sum_{n>=1} 1/a(n)^2 = e (A001113).
Sum_{n>=1} 1/a(n)^3 = BesselI(1,2) (A096789). (End)
a(n) = A000142(A084558(n)). - Ridouane Oudra, Aug 22 2025