A275273 p - n!, where p is the third smallest prime > n!.
4, 5, 7, 13, 17, 19, 37, 37, 31, 41, 19, 59, 109, 71, 179, 73, 59, 73, 113, 53, 47, 127, 149, 263, 107, 241, 59, 103, 317, 241, 317, 113, 197, 127, 109, 647, 397, 67, 281, 67, 211, 163, 109, 107, 439, 521, 709, 101, 383, 337, 397, 223, 337, 601, 281, 311
Offset: 1
Examples
For n = 4, we have n! = 24, so that p = 37, and a(4) = 13.
Links
- Clark Kimberling, Table of n, a(n) for n = 1..300
Programs
-
Mathematica
Table[NextPrime[n!, 3] - n!, {n, 1, 150}] NextPrime[#,3]-#&/@(Range[60]!) (* Harvey P. Dale, Sep 29 2024 *)
Comments