A325435 Numbers m such that m! / sigma(m) is an integer.
1, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 72, 73
Offset: 1
Keywords
Examples
6 is in the sequence because 6! / sigma(6) = 720 / 12 = 60 (integer).
Programs
-
Magma
[n: n in [1..1000] | IsIntegral(Factorial(n)/&+[d: d in Divisors(n)])]
-
Mathematica
Select[Range[80],IntegerQ[#!/DivisorSigma[1,#]]&] (* Harvey P. Dale, Jul 20 2022 *)
-
PARI
isok(n) = ((n! % sigma(n)) == 0); \\ Michel Marcus, Apr 26 2019
Comments