Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A071578
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A071578 Number of iterations of Pi(n) needed to reach 1, where Pi(x) denotes the number of primes <= x. +0
1
0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n) = a(Pi(n))+1.

PROGRAM

(PARI) for(n=2, 150, s=n; t=0; while(s!=1, t++; s=sum(i=2, s, isprime(i)); if(s==1, print1(t, ", "); ); ))

CROSSREFS

Cf. A000720.

Sequence in context: A077463 A084556 A084506 this_sequence A157791 A156874 A078767

Adjacent sequences: A071575 A071576 A071577 this_sequence A071579 A071580 A071581

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), May 31 2002

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 December 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research