Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A114897
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A114897 a(1) = 1. a(n+1) = number of earlier terms a(k) (1 <= k <= n) where a(k)+n is a prime. +0
4
1, 1, 2, 1, 3, 1, 4, 1, 1, 2, 7, 2, 7, 1, 1, 4, 11, 3, 9, 2, 4, 4, 11, 0, 2, 4, 4, 11, 11, 6, 14, 2, 5, 7, 6, 8, 16, 10, 4, 15, 13, 9, 13, 10, 5, 9, 14, 5, 9, 9, 11, 10, 17, 6, 9, 11, 13, 19, 20, 11, 22, 8, 17, 14, 13, 14, 20, 13, 13, 22, 23, 9, 20, 8, 12, 16, 11, 13, 21, 13, 13, 16, 14, 12 (list; graph; listen)
OFFSET

1,3

LINKS

T. D. Noe, Table of n, a(n) for n=1..2000

FORMULA

a(n) = A123541(n-1) for n>3. - T. D. Noe, Apr 29 2007

EXAMPLE

If we add 10 to each of the first 10 terms of the sequence, we get

[11,11,12,11,13,11,14,11,11,12]. Of these only the six 11's and the 13 are primes. So a(11) = 7.

PROGRAM

(PARI) {v=[1]; for(n=2, 250, w=vector(length(v)+1); s=0; for(i=1, length(v), w[i]=v[i]; if(isprime(v[i]+n-1), s++)); w[length(v)+1]=s; v=w); v} (Herrgesell)

CROSSREFS

Cf. A108839.

Sequence in context: A081386 A143802 A135591 this_sequence A123539 A142593 A102547

Adjacent sequences: A114894 A114895 A114896 this_sequence A114898 A114899 A114900

KEYWORD

nonn,nice

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jan 05 2006

EXTENSIONS

More terms from Lambert Herrgesell (zero815(AT)googlemail.com), Jan 16 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