A275274 p - n!, where p is the fourth smallest prime > n!.
6, 9, 11, 17, 19, 23, 41, 41, 47, 47, 29, 83, 139, 79, 223, 149, 83, 101, 137, 79, 59, 131, 271, 283, 131, 263, 137, 197, 373, 313, 379, 137, 307, 151, 257, 761, 457, 151, 443, 89, 229, 167, 181, 191, 467, 1109, 739, 103, 401, 353, 487, 827, 449, 617, 307
Offset: 1
Examples
For n = 4, we have n! = 24, so that p = 41, and a(4) = 17.
Links
- Clark Kimberling, Table of n, a(n) for n = 1..300
Programs
-
Mathematica
Table[NextPrime[n!, 4] - n!, {n, 1, 150}]
Comments