A057245 Numbers m such that m | Sum_{k=1..m} k!.
1, 3, 9, 11, 33, 99
Offset: 1
References
- Richard K. Guy, Unsolved Problems in Number Theory, Springer, Third Ed., 2004, Section B44.
Programs
-
GAP
Filtered([1..1500],m->Sum([1..m],k->Factorial(k)) mod m = 0); # Muniru A Asiru, Oct 28 2018
-
Mathematica
a = 0; b = 1; k = 2; While[k < 250001, c = k*b - (k - 1) a; If[ Mod[c, k] == 1, Print[k]]; a = b; b = c; k++] (* Robert G. Wilson v, Jun 15 2013 *)
Comments