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.

A152220 Primes p such that p^2 divides m!-1 for some integer m < p.

Original entry on oeis.org

11, 31, 107, 571, 971, 4931
Offset: 1

Views

Author

Artur Jasinski, Nov 29 2008

Keywords

Comments

For numbers k such that k! - 1 is divisible by a square see A152219.
a(7) > 60000, if it exists. - Amiram Eldar, Oct 23 2024

Crossrefs

Programs

  • Mathematica
    aa = {}; Do[If[(Sqrt[n! - 1] /. Sqrt[] -> 1) > 1, Print[(Sqrt[n! - 1] /. Sqrt[] -> 1)]; AppendTo[aa, (Sqrt[n! - 1] /. Sqrt[_] -> 1)]], {n, 1, 1000}]; aa
    q[p_] := Module[{m = 2}, While[m < p && ! Divisible[m! - 1, p^2], m++]; Divisible[m! - 1, p^2]]; Select[Prime[Range[660]], q] (* Amiram Eldar, Oct 23 2024 *)
  • PARI
    is(p) = if(isprime(p), my(m = 2); while(m < p && (m! - 1) % (p^2), m++); !((m! - 1) % (p^2)), 0); \\ Amiram Eldar, Oct 23 2024

Extensions

a(6) from Artur Jasinski, Nov 30 2008
Showing 1-1 of 1 results.