Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A049076
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A049076 Number of steps in the prime index chain for the n-th prime. +0
39
1, 2, 3, 1, 4, 1, 2, 1, 1, 1, 5, 1, 2, 1, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 6, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 4, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1 (list; graph; listen)
OFFSET

1,2

COMMENT

Let p(k) = k-th prime, let S(p) = S(p(k)) = k, the subscript of p; a(n) = order of primeness of p(n) = 1+m where m is largest number such that S(S(..S(p(n))...)) with m S's is a prime.

The record holders correspond to A007097.

LINKS

N. Fernandez, Table of n, a(n) for n = 1..500

N. Fernandez, An order of primeness, F(p)

N. Fernandez, The Exploring Primeness Project

FORMULA

Let b(n) = 0 if n is nonprime, otherwise b(n) = k where n is the k-th prime. Then a(n) is the number of times you can apply b to the n-th prime before you hit a nonprime.

EXAMPLE

11 is 5th prime, so S(11)=5, 5 is 3rd prime, so S(S(11))=3, 3 is 2nd prime, so S(S(S(11)))=2, 2 is first prime, so S(S(S(S(11))))=1, not a prime. Thus a(5)=4.

Alternatively, a(5) = 4: the 5th prime is 11, and its prime index chain is 11->5->3->2->1->0. a(6) = 1: the 6th prime is 13, and its prime index chain is 13->6->0.

MATHEMATICA

A049076[n_] := Length[ NestWhileList[ PrimePi, n, PrimeQ]]; Table[ f[n], {n, 105}] (from Robert G. Wilson v Mar 11 2004)

CROSSREFS

Cf. A049077, A049078, A049079, A049080, A049081, A006450.

Sequence in context: A127412 A039661 A081877 this_sequence A097744 A055445 A135560

Adjacent sequences: A049073 A049074 A049075 this_sequence A049077 A049078 A049079

KEYWORD

nice,nonn,easy

AUTHOR

N. Fernandez (primeness(AT)borve.org)

EXTENSIONS

Additional comments from Gabriel Cunningham (gcasey(AT)mit.edu), Apr 12 2003

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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research