The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A115208 a(1)=0. a(n) = number of earlier terms of the sequence which when added to n produce a composite number. 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; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
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, Jun 03 2007 *)
CROSSREFS
Sequence in context: A139432 A363653 A202154 * A234930 A351887 A273261
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 16 2006
EXTENSIONS
More terms from Stefan Steinerberger, Jun 03 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 16:22 EDT 2024. Contains 372840 sequences. (Running on oeis4.)