login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A014689 a(n) = prime(n)-n, the number of nonprimes less than prime(n). 27
1, 1, 2, 3, 6, 7, 10, 11, 14, 19, 20, 25, 28, 29, 32, 37, 42, 43, 48, 51, 52, 57, 60, 65, 72, 75, 76, 79, 80, 83, 96, 99, 104, 105, 114, 115, 120, 125, 128, 133, 138, 139, 148, 149, 152, 153, 164, 175, 178, 179, 182, 187, 188, 197, 202, 207, 212, 213, 218, 221, 222 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

a(n) = A048864(A000040(n)) = number of nonprimes in RRS of n-th prime. - Labos E. (labos(AT)ana.sote.hu), Oct 10 2002

Contribution from Enoch Haga (Enokh(AT)comcast.net), May 25 2009: (Start)

A000040 - A014689 = A000027; in other words, the sequence of natural numbers

subtracted from the prime sequence produces A014689. (End)

a(n) = A000040(n) - n. a(n) = inverse (frequency distribution) sequence of A073425(n), i.e. number of terms of sequence A073425(n) less than n. a(n) = A065890(n) + 1, for n >= 1. a(n) - 1 = A065890(n) = the number of composite numbers, i.e. (A002808) less than n-th primes, (i.e. < A000040(n)). [From Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Jun 27 2009]

a(n) = A162177(n+1) + 1, for n >= 1. a(n) - 1 = A162177(n+1) = the number of composite numbers, i.e. (A002808) less than (n+1)-th number of set {1, primes}, (i.e. < A008578(n+1)). [From Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Jun 28 2009]

LINKS

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

MATHEMATICA

Table[Prime[n] - n, {n, 61}] (Alonso Delarte)

PROG

(PARI) a(n) = prime(n)-n \\ Charles R Greathouse IV, Sep 05 2011

CROSSREFS

Equals A014692 - 1.

Cf. A000040, A033286,A158611, A002808, A065890.

Sequence in context: A062837 A190670 A073170 * A117206 A026443 A204323

Adjacent sequences:  A014686 A014687 A014688 * A014690 A014691 A014692

KEYWORD

nonn,easy,nice

AUTHOR

Mohammad K. Azarian (ma3(AT)evansville.edu)

EXTENSIONS

More terms from Vasiliy Danilov (danilovv(AT)usa.net) 1998 Jul

Correction for change of offset in A158611 and A008578 in Aug 2009 Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Jan 27 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 12:21 EST 2012. Contains 205785 sequences.