Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117102
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117102 Least n such that nextprime(p*n)>p*nextprime(n) where p traversing prime numbers (if p is prime then nextprime(p)=p). +0
1
4, 16, 18, 42, 126, 126, 136, 70, 58, 292, 822, 1872, 1446, 1008, 3318, 2026, 2280, 2842, 7726, 17922, 2136, 5022, 20142, 17550, 19540, 68898, 59082, 18792, 90006, 136540, 246888, 392382, 197088, 144060, 819898, 137956, 1555162, 291198, 909772 (list; graph; listen)
OFFSET

0,1

COMMENT

A(n)+1 is always prime ? A(n) is always even ?

EXAMPLE

for p=2 least n such than f(2*n)>2*f(n) and n is composite is 4=a(1)

for p=3 least n such than f(3*n)>3*f(n) and n is composite is 16=a(2)

PROGRAM

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

CROSSREFS

Sequence in context: A037409 A034121 A139719 this_sequence A077476 A146510 A032827

Adjacent sequences: A117099 A117100 A117101 this_sequence A117103 A117104 A117105

KEYWORD

easy,nonn

AUTHOR

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

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 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research