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.

Showing 1-1 of 1 results.

A385564 Prime powers k such that lcm(1, 2, 3, ..., k)-1 is prime.

Original entry on oeis.org

3, 4, 5, 7, 8, 19, 23, 29, 32, 47, 61, 97, 181, 233, 307, 401, 887, 1021, 1087, 1361, 1481, 2053, 2293, 5407, 5857, 11059, 14281, 27277, 27803, 36497, 44987, 53017
Offset: 1

Views

Author

Jeppe Stig Nielsen, Jul 03 2025

Keywords

Comments

The prime associated with each a(n) is A057824(n).
a(33) > 10^5. Up to 10^5, contains 4, 8, 32 not in subsequence A154524. - Michael S. Branicky, Jul 04 2025

Examples

			k=32 is a prime power, so point at which A003418 attains a new value, namely lcm(1, 2, 3, ..., 32) = 144403552893600, and by subtracting one we get 144403552893599 which is a prime number, so 32 is a member of the sequence.
		

Crossrefs

Intersection of A057825 and A000961.
Supersequence of A154524.

Programs

  • Mathematica
    Select[Range[6000],PrimePowerQ[#]&&PrimeQ[Fold[LCM,Range[#]]-1]&] (* James C. McMahon, Jul 09 2025 *)
  • PARI
    L=1;for(k=2,6000,!isprimepower(k,&p)&&next();L*=p;ispseudoprime(L-1)&&print1(k,", "))

Extensions

a(31)-a(32) from Michael S. Branicky, Jul 03 2025
Showing 1-1 of 1 results.