cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A161671 a(n) = prime(n) - A141468(n).

Original entry on oeis.org

2, 2, 1, 1, 3, 4, 7, 7, 9, 14, 15, 19, 21, 22, 25, 29, 34, 35, 40, 43, 43, 47, 50, 55, 62, 65, 65, 68, 69, 71, 83, 86, 91, 91, 100, 101, 106, 111, 113, 118, 123, 124, 133, 133, 135, 136, 147, 158, 161, 161, 164, 169, 169, 177, 182, 187, 192, 193, 197, 200, 201, 209
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Jun 16 2009, Dec 03 2009

Keywords

Examples

			2(=2-0), 2(=3-1), 1(=5-4), 1(=7-6), 3(=11-8), 4(=13-9), 7(=17-10), 7(=19-12), 9(=23-14), 14(=29-15), etc.
		

Crossrefs

Programs

Formula

a(n) = A000040(n) - A141468(n).
a(n+2) = A168563(n).
a(n) = A000040(n) - A018252(n-1), if n >= 2. - Omar E. Pol, Oct 21 2011
a(n) ~ n log n. - Charles R Greathouse IV, Dec 21 2011

Extensions

Edited by N. J. A. Sloane, Jun 30 2009
207 replaced with 209 by R. J. Mathar, Oct 04 2009
Edited by Omar E. Pol, Oct 21 2011

A176004 (n-th prime > 3) minus (n-th semiprime).

Original entry on oeis.org

1, 1, 2, 3, 3, 4, 2, 7, 6, 11, 8, 9, 12, 15, 20, 15, 18, 20, 18, 22, 25, 27, 32, 32, 29, 30, 27, 28, 41, 44, 46, 46, 55, 56, 51, 52, 52, 55, 60, 60, 69, 70, 68, 66, 77, 82, 85, 86, 88, 93, 86, 93, 98, 102, 103, 102, 100, 103, 100, 108, 120, 117, 112, 115, 128, 132, 141, 140, 140, 145
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Apr 11 2010, May 17 2010

Keywords

Crossrefs

Cf. A168563.

Programs

  • Mathematica
    Module[{nn=80,sem,len},sem=Select[Range[3*nn],PrimeOmega[#]==2&];len= Min[nn,Length[sem]];#[[1]]-#[[2]]&/@Thread[{Take[Prime[Range[ 3,nn+2]], len],Take[sem,len]}]] (* Harvey P. Dale, Sep 04 2015 *)

Formula

a(n)=prime(n+2)-semiprime(n).

Extensions

a(6) corrected by R. J. Mathar, Apr 16 2010
Corrected and extended by Harvey P. Dale, Sep 04 2015
Showing 1-2 of 2 results.