A275275 n! - p, where p is the second greatest prime < n!.
4, 5, 3, 5, 11, 11, 17, 37, 17, 17, 17, 13, 61, 17, 59, 71, 61, 43, 113, 71, 41, 101, 191, 103, 191, 179, 71, 127, 37, 79, 113, 163, 47, 373, 293, 157, 149, 79, 167, 211, 151, 89, 131, 113, 73, 107, 179, 227, 173, 113, 257, 239, 151, 227, 163, 509, 293, 347
Offset: 1
Examples
For n = 4, we have n! = 24, so that p = 19, and a(4) = 5.
Links
- Clark Kimberling, Table of n, a(n) for n = 1..300
Programs
-
Mathematica
Table[n! - NextPrime[n!, -2], {n, 1, 150}]
Comments