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.

A056831 LCM of composite numbers falling between n-th and (n+1)-st primes.

Original entry on oeis.org

4, 6, 360, 12, 1680, 18, 4620, 491400, 30, 1884960, 29640, 42, 45540, 12994800, 45821160, 60, 89369280, 164220, 72, 211110900, 265680, 195878760, 83434347360, 485100, 102, 578760, 108, 683760, 97661867698205811000, 1073280, 1799665560
Offset: 2

Views

Author

Labos Elemer, Aug 30 2000

Keywords

Crossrefs

Programs

  • Mathematica
    Table[LCM@@Range[Prime[n]+1, Prime[n+1]-1], {n,2,50}]
  • PARI
    a(n) = my(x=prime(n)+1); for (i=x, prime(n+1)-1, x = lcm(i, x)); x; \\ Michel Marcus, Mar 22 2020
    
  • Python
    from math import lcm
    from sympy import prime
    def A056831(n): return lcm(*range(prime(n)+1,prime(n+1))) # Chai Wah Wu, Apr 16 2023

Formula

a(A029707(n)) = A014574(n). - Michel Marcus, Mar 22 2020

Extensions

Edited by Robert G. Wilson v, Apr 12 2002