OFFSET
1,5
COMMENTS
The series is related to the product of primes and the "proof" of the existence of infinite many prime twins.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..135
R. G. Wilson v, Explicit factorizations
Hisanori Mishima, Factorizations of many number sequences
Hisanori Mishima, Factorizations of many number sequences
EXAMPLE
a(2)=0 because 2! - 1 = 1 (and this is not a prime number) a(5)=2 because 5! -1 = 119 = 7 * 17
MATHEMATICA
a[q_] := Module[{x, n}, x=FactorInteger[q!-1]; n=Length[x]; Sum[Table[x[[i]][[2]], {i, n}][[j]], {j, n}]]
A054991[n_Integer] := PrimeOmega[n! - 1]; A054991[1] = 0; Table[A054991[n], {n, 2, 100}] (* Vladimir Joseph Stephan Orlovsky, Jul 22 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Arne Ring (arne.ring(AT)epost.de), May 30 2000
EXTENSIONS
More terms from Robert G. Wilson v, Mar 24 2001
More terms from Amiram Eldar, Oct 03 2019
STATUS
approved