OFFSET
1,2
COMMENTS
Suggested by the apparently false conjecture (A. Murthy) that A096123(n) = n!/(nextprime(n/2)-1)! for all sufficiently large n.
Observation: If n is an even term then n+1 is also a term. Odd terms n that are not preceded by term n-1 are very rare; only 1, 5, 11, 83, 455, 623, 839, 1139, 1199, 2039, 2459, 2579, 2639, 2855, 2975 have been found up to 3000.
EXAMPLE
A096123(11) = 11!/(nextprime(11/2)-1)! = 11!/(6-1)! = 55440, hence 11 is a term.
PROG
(PARI) {for(n=1, 215, p=1; k=0; b=1; while(b&&k<n, p=p*(n-k); d=(n-k)!; if(p%d==0, b=0; if(p==n!/(nextprime(n/2)-1)!, print1(n, ", ")), k++)))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Jul 17 2004
STATUS
approved