A091330 a(n) = ((p-1)!/p) - ((p-1)*(p-1)!/p!), where p is the n-th prime.
0, 0, 4, 102, 329890, 36846276, 1230752346352, 336967037143578, 48869596859895986086, 10513391193507374500051862068, 8556543864909388988268015483870, 10053873697024357228864849950022572972972
Offset: 1
Examples
Prime(4)=7 so a(4) = 6!/7 - 6*6!/7! = 102
Crossrefs
Cf. A007619.
Programs
-
Mathematica
A091330[n_] := Block[{p = Prime[n]}, ((p - 1)!/p) - ((p - 1)*(p - 1)!/p!)] (* Robert G. Wilson v, Mar 02 2004 *)
Extensions
More terms from Robert G. Wilson v and Ray Chandler, Mar 02 2004
Comments