Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A115208
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A115208 a(1)=0. a(n) = number of earlier terms of the sequence which when added to n produce a composite number. +0
4
0, 0, 0, 3, 1, 4, 2, 6, 6, 7, 4, 9, 5, 10, 11, 12, 9, 14, 11, 14, 18, 17, 14, 20, 18, 20, 17, 23, 18, 22, 22, 26, 23, 29, 26, 26, 26, 30, 28, 36, 23, 34, 30, 34, 31, 43, 30, 40, 33, 37, 43, 45, 31, 46, 42, 44, 40, 48, 42, 48, 39, 52, 47, 53 (list; graph; listen)
OFFSET

1,4

EXAMPLE

Adding 7 to the first 6 terms of the sequence gives [7,7,7,10,8,11]. Of these terms, two are composite, so a(7) = 2.

MATHEMATICA

a = {0, 0}; For[n = 3, n < 90, n++, in = 0; For[j = 1, j < Length[a] + 1, j++, If[ ! PrimeQ[n + a[[j]]], in++ ]]; AppendTo[a, in]]; a - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jun 03 2007

CROSSREFS

Cf. A115207, A115209, A115210.

Sequence in context: A066728 A066899 A139432 this_sequence A067060 A115659 A068028

Adjacent sequences: A115205 A115206 A115207 this_sequence A115209 A115210 A115211

KEYWORD

nonn

AUTHOR

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

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jun 03 2007

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 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research