login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A089137 Primes in the progression (n!- m)/m where n advances by 1 and m resets to 1 upon each prime occurrence. 0

%I #3 Oct 01 2013 17:57:46

%S 5,23,59,719,5039,10079,181439,907199,7983359,479001599,622702079,

%T 87178291199,326918591999,6974263295999,59281238015999,

%U 1600593426431999,15205637551103999,405483668029439999,5676771352412159999

%N Primes in the progression (n!- m)/m where n advances by 1 and m resets to 1 upon each prime occurrence.

%e n=5,m=1 (5!-1)/1 = 119=7*17 not prime m advances to 2.

%e n=5,m=2 (5!-2)/2 = 118/2 = 59 prime keep it.

%o (PARI) nfactm2d2(n,m) = { for(x=1,n, for(k=1,m, y=floor((x!- k)/k); if(isprime(y),print1(y",");break) ) ) }

%K base,easy,nonn

%O 1,1

%A _Cino Hilliard_, Dec 05 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 10 07:33 EDT 2024. Contains 372358 sequences. (Running on oeis4.)