Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117365
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117365 a(n) = largest prime less than the smallest prime dividing n (or 1 if there is no such prime). +0
5
1, 1, 2, 1, 3, 1, 5, 1, 2, 1, 7, 1, 11, 1, 2, 1, 13, 1, 17, 1, 2, 1, 19, 1, 3, 1, 2, 1, 23, 1, 29, 1, 2, 1, 3, 1, 31, 1, 2, 1, 37, 1, 41, 1, 2, 1, 43, 1, 5, 1, 2, 1, 47, 1, 3, 1, 2, 1, 53, 1, 59, 1, 2, 1, 3, 1, 61, 1, 2, 1, 67, 1, 71, 1, 2, 1, 5, 1, 73, 1, 2, 1, 79, 1, 3, 1, 2, 1, 83, 1, 5, 1, 2, 1, 3, 1 (list; graph; listen)
OFFSET

1,3

COMMENT

a(n) = 1 if and only if n is even or if n = 1.

EXAMPLE

5 is the smallest prime dividing 35. So a(35) is the largest prime < 5, which is 3.

MATHEMATICA

a[n_] := If[EvenQ[n], 1, Prime[PrimePi[FactorInteger[n][[1]][[1]]] - 1]]; Table[a[n], {n, 2, 80}] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Mar 14 2006

CROSSREFS

Cf. A117364, A117366, A117367, A117368.

Sequence in context: A110977 A069230 A101387 this_sequence A116212 A079068 A133021

Adjacent sequences: A117362 A117363 A117364 this_sequence A117366 A117367 A117368

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Mar 10 2006

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Mar 14 2006

More terms from Frank Adams-Watters (FrankTAW(AT)Netscape.net), Aug 29 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