Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113512
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113512 Number of preceding primes or nonprimes whichever is greater. +0
1
0, 1, 2, 2, 2, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 17, 17, 18, 18, 19, 19, 20, 20, 21, 22, 23, 23, 23, 23, 24, 24, 25, 26, 27, 28, 29, 29, 29, 29, 29, 29, 30, 30, 31, 31, 32, 32, 33, 34, 35, 36, 37, 37, 37, 37, 37, 37 (list; graph; listen)
OFFSET

1,3

COMMENT

a(1) = 0, a(n) = if 2*m+1 > n then m else n-m-1, where m = number of occurrences of primes in a(k) for k<n;

for k>1: prime(k) occurs consecutively exactly A001223(k)=prime(k)-prime(k-1) times; the nonnegative integers (A001477) are a subsequence.

CROSSREFS

Adjacent sequences: A113509 A113510 A113511 this_sequence A113513 A113514 A113515

Sequence in context: A055748 A090702 A029124 this_sequence A004524 A126257 A025773

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jan 12 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 October 11 13:47 EDT 2008. Contains 144830 sequences.


AT&T Labs Research