Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A037153
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A037153 a(n)=p-n!, where p is the smallest prime > n!+1. +0
12
2, 3, 5, 5, 7, 7, 11, 23, 17, 11, 17, 29, 67, 19, 43, 23, 31, 37, 89, 29, 31, 31, 97, 131, 41, 59, 47, 67, 223, 107, 127, 79, 37, 97, 61, 131, 311, 43, 97, 53, 61, 97, 71, 47, 239, 101, 233, 53, 83, 61, 271, 53, 71, 223, 71, 149, 107, 283, 293, 271, 769, 131, 271, 67, 193 (list; graph; listen)
OFFSET

1,1

COMMENT

Analogous to Fortunate numbers and like them, the entries appear to be primes. In fact, the first 541 terms are primes. Are all terms prime?

a(n) is the first (smallest) m such that m > 1 and n!+ m is prime. The second such m is A087202(n). a(n) must be greater than nextprime(n)-1. - Farideh Firoozbakht (mymontain(AT)yahoo.com), Sep 01 2003

MATHEMATICA

NextPrime[ n_Integer ] := (k=n+1; While[ !PrimeQ[ k ], k++ ]; Return[ k ]); f[ n_Integer ] := (p = n! + 1; q = NextPrime[ p ]; Return[ q - p + 1 ]); Table[ f[ n ], {n, 1, 75} ] (from Robert G. Wilson v)

PROGRAM

(Mupad) for n from 1 to 65 do f := n!:a := nextprime(f+2)-f:print(a) end_for; - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Feb 22 2007

CROSSREFS

Cf. A087202, A005235.

Sequence in context: A123318 A111060 A082432 this_sequence A077724 A163867 A023838

Adjacent sequences: A037150 A037151 A037152 this_sequence A037154 A037155 A037156

KEYWORD

nonn

AUTHOR

Jud McCranie (j.mccranie(AT)comcast.net)

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 22 20:51 EST 2009. Contains 167312 sequences.


AT&T Labs Research