Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A037155
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A037155 a(n)=n!-p, where p is the largest prime < n!-1. +0
5
3, 5, 7, 11, 17, 31, 13, 11, 13, 13, 23, 17, 47, 53, 59, 41, 101, 31, 31, 73, 89, 73, 149, 37, 43, 101, 31, 79, 61, 163, 47, 193, 113, 127, 97, 79, 73, 83, 131, 79, 109, 109, 53, 89, 79, 103, 59, 97, 179, 67, 59, 127, 61, 461, 277, 109, 137, 139, 71, 71, 101, 359 (list; graph; listen)
OFFSET

3,1

COMMENT

Analogous to the lesser Fortunate numbers and like them, all entries so far are primes.

EXAMPLE

a(4) = 4!-19 = 24-19 = 5.

MATHEMATICA

PrevPrime[ n_Integer ] := (k=n-1; While[ !PrimeQ[ k ], k-- ]; Return[ k ]); f[ n_Integer ] := (p = n! - 1; q = NextPrime[ p ]; Return[ p - q + 1 ]); Table[ f[ n ], {n, 3, 75} ]

CROSSREFS

Cf. A055211.

Sequence in context: A068811 A088083 A116457 this_sequence A038944 A124081 A119573

Adjacent sequences: A037152 A037153 A037154 this_sequence A037156 A037157 A037158

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Jul 06 2000

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 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research