login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A152220
Primes p such that p^2 divides m!-1 for some integer m < p.
1
11, 31, 107, 571, 971, 4931
OFFSET
1,1
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
MATHEMATICA
aa = {}; Do[If[(Sqrt[n! - 1] /. Sqrt[_] -> 1) > 1, Print[n]; 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 *)
PROG
(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
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Artur Jasinski, Nov 29 2008
EXTENSIONS
a(6) from Artur Jasinski, Nov 30 2008
STATUS
approved