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!)
A054546 First differences of nonprimes (including 0 and 1, A002808). 8
1, 3, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Sum of first n terms equals n-th nonprime number.
First differences of A141468. - Omar E. Pol, Oct 21 2011
LINKS
FORMULA
a(n) = A018252(n) - A141468(n). - Omar E. Pol, Oct 21 2011
MATHEMATICA
t=Flatten[Position[Table[PrimeQ[w], {w, 2, 256}], False]]+1 Delete[t-RotateRight[t], 1]
Differences[Select[Range[0, 200], !PrimeQ[#]&]] (* Harvey P. Dale, May 27 2018 *)
CROSSREFS
Sequence in context: A214878 A086138 A170822 * A065310 A226352 A238402
KEYWORD
nonn,easy
AUTHOR
G. L. Honaker, Jr., Apr 09 2000
EXTENSIONS
More terms from James A. Sellers, Apr 11 2000
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 April 19 05:02 EDT 2024. Contains 371782 sequences. (Running on oeis4.)