Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A097445
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A097445 Second occurrence where n# - p is prime for primes p = 3,5,... +0
1
19, 197, 2293, 30011, 510463, 9699653, 223092809, 6469693163, 200560490051, 7420738134703, 304250263527157, 13082761331669881, 614889782588491313, 32589158477190044641, 1922760350154212638961, 117288381359406970983047 (list; graph; listen)
OFFSET

2,1

COMMENT

Care has to be taken to start with a large enough n to be sure terms are not missed. This was for n=100. This and A097444 were difficult to obtain using Pari.

FORMULA

n# is n primorial = product of primes 2*3*5*...*p<=n

EXAMPLE

3#=2*3 = 6. 6-3=3 first prime, 6-5 = 1 not prime thus 3#-p is omitted.

5# = 2*3*5 = 30. 30-7 = 23 first prime,30-11 = 19 second prime.

PROGRAM

(PARI) primorm2(n) = { pr=1; for(x=1, n, f=1; pr*=prime(x); for(m=1, n, y=pr-prime(m); if(isprime(y), f=1; for(m=m+1, n, y=pr-prime(m); if(isprime(y), print1(y", "); f=0; break, f=1)); ); if(f==0, break) ) ) }

CROSSREFS

Sequence in context: A120791 A048556 A141995 this_sequence A058370 A066007 A135162

Adjacent sequences: A097442 A097443 A097444 this_sequence A097446 A097447 A097448

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Aug 23 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 24 12:00 EDT 2008. Contains 142294 sequences.


AT&T Labs Research