Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

1,3

COMMENT

a(n) = 1 if and only if n is a power of 2 (including 1).

a(n/3) = 2 iff n/3 is A003586: 3-smooth numbers: numbers of the form 2^i*3^j with i, j >= 0.

a(n/5) = 3 iff n/5 is A051037: 5-smooth numbers: i.e. numbers whose prime divisors are all <= 5, etc.

EXAMPLE

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

MATHEMATICA

PrevPrime[n_] := Block[{k = n - 1}, While[ ! PrimeQ[k], k-- ]; k]; f[n_] := Block[{k = PrevPrime@ FactorInteger[Max[2, n]][[ -1, 1]]}, If[k > 1, k, 1]]; Array[f, 87] (* Robert G. Wilson v *)

CROSSREFS

Cf. A117365, A117366, A117367.

Sequence in context: A022447 A117194 A024467 this_sequence A120250 A116529 A064989

Adjacent sequences: A117361 A117362 A117363 this_sequence A117365 A117366 A117367

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), May 01 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