Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A097525
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A097525 Least k such that k*P(n)#-P(n+1) and k*P(n)#+P(n+1) are both primes with P(i)=i-th prime and P(i)#=i-th primorial. +0
1
4, 2, 1, 2, 14, 1, 4, 1, 5, 42, 3, 19, 33, 12, 48, 105, 26, 5, 35, 23, 49, 70, 160, 59, 52, 141, 105, 96, 154, 103, 174, 114, 140, 314, 615, 97, 42, 6, 781, 240, 8, 71, 764, 14, 321, 197, 916, 823, 901, 23, 390, 121, 1549, 646, 117, 622, 826, 671, 1577, 339, 313, 465, 62 (list; graph; listen)
OFFSET

1,1

EXAMPLE

2*3*5*7-11=199 prime 2*3*5*7+11=221=13*17 composite

2*2*3*5*7-11=409 prime 2*2*3*5*7+11=431 prime

2*P(4)#-P(5) and 2*P(4)+P(5) both primes, so k=2 for n=4

MATHEMATICA

Primorial[n_] := Product[ Prime[i], {i, n}]; f[n_] := Block[{k = 1, p = Primorial[n], q = Prime[n + 1]}, While[k*p - q < 2 || !PrimeQ[k*p - q] || !PrimeQ[k*p + q], k++ ]; k]; Table[ f[n], {n, 63}] (from Robert G. Wilson v Aug 31 2004)

CROSSREFS

Sequence in context: A080816 A016507 A132116 this_sequence A010124 A071406 A010311

Adjacent sequences: A097522 A097523 A097524 this_sequence A097526 A097527 A097528

KEYWORD

easy,nonn

AUTHOR

Pierre CAMI (pierrecami(AT)tele2.fr), Aug 27 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 31 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 November 25 14:49 EST 2009. Contains 167514 sequences.


AT&T Labs Research