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.

A114574 a(n) = p*p! where p = prime(n).

Original entry on oeis.org

4, 18, 600, 35280, 439084800, 80951270400, 6046686277632000, 2311256907767808000, 594596384994354462720000, 256411097818451356681764864000000, 254907998279515607349492449280000000, 509258864375374766713691244518493388800000000, 1371553591139716091434972544191070818271232000000000
Offset: 1

Views

Author

L. Shawnee Cook (shawneecook(AT)gmail.com), Feb 17 2006

Keywords

Examples

			2 * 2! = 4, 3 * 3! = 18, 5 * 5! = 600.
		

References

  • Originally published on Nov 09 2004 by indiejade(AT)gmail.com

Crossrefs

Cf. A000040 (prime(n)), A039716 (prime(n)!).

Programs

  • Magma
    [p*Factorial(p): p in PrimesUpTo(50)]; // Vincenzo Librandi, Jun 09 2013
    
  • Mathematica
    Array[Prime[#] Prime[#]! &, 13] (* Michael De Vlieger, Aug 04 2015 *)
    #*#!&/@Prime[Range[15]] (* Harvey P. Dale, Sep 21 2024 *)
  • Python
    from sympy import factorial, prime
    def a(n): p = prime(n); return p * factorial(p)
    print([a(n) for n in range(1, 14)]) # Michael S. Branicky, Apr 18 2021

Formula

a(n) = A000040(n)*A039716(n). - Michel Marcus, Feb 08 2015
a(n) = A001563(A000040(n)). - Michel Marcus, Aug 04 2015