A193447 a(n) = ((p - 2)! + p - 1)/(p*(p - 1)) where p is the n-th prime.
3, 3299, 255877, 4807626353, 1040021719579, 100970241446066087, 13409937746820630739862069, 9507270961010432209186683871, 7757618593382991688938927430572972973, 12437732976339904486975781548721278876097561, 18522993694996570934756402022946152638511627907
Offset: 4
Keywords
Examples
a(4) = (5! + 6)/(7*6) = 126/42 = 3. a(5) = (9! + 10)/(11*10) = 362890/110 = 3299.
Links
- Wikipedia, Wilson's theorem
Programs
-
PARI
a(n) = my(p=prime(n)); ((p-2)!+p-1)/(p*(p-1)) \\ Jianing Song, Sep 17 2018
Extensions
Name clarified by Jianing Song, Sep 17 2018
Comments