Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117103
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117103 Let p = n-th prime. Then a(n) = least odd composite number m such that nextprime(p*m) > p*nextprime(m). +0
1
27, 39, 105, 279, 629, 597, 1661, 1875, 3777, 13961, 15491, 33585, 87401, 11445, 28877, 113451, 265115, 146189, 584705, 668525, 1370667, 1582581, 1471865, 2193351, 2932901, 3832635, 3571617, 3617721, 15131459, 31245831, 11442269 (list; graph; listen)
OFFSET

1,1

COMMENT

If k is prime then nextprime(k)=k.

LINKS

Ray Chandler, Table of n, a(n) for n=1..32

EXAMPLE

For n = 1, p=2, least odd composite m such than f(2*m)>2*f(m) is 27=a(1).

PROGRAM

(PARI) f(n)=nextprime(n); g(n, a)=for(i=1, a, if(f(n*i)>f(n)*f(i) && !isprime(i) && Mod(i, 2)!=0, return(i))); forprime (i=1, 150, print1(g(i, 500000000), ", "))

CROSSREFS

Adjacent sequences: A117100 A117101 A117102 this_sequence A117104 A117105 A117106

Sequence in context: A069105 A097228 A039614 this_sequence A124940 A114446 A141229

KEYWORD

nonn

AUTHOR

Mohammed Bouayoun (mohammed.bouayoun(AT)sanef.com), Apr 18 2006

EXTENSIONS

a(26)-a(30) from Zak Seidov (zakseidov(AT)yahoo.com), May 15 2007

a(31)-a(32) from Ray Chandler (rayjchandler(AT)sbcglobal.net), May 30 2007

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 October 13 17:46 EDT 2008. Contains 145008 sequences.


AT&T Labs Research