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.

A174008 n-th prime plus n-th even nonnegative nonprime.

Original entry on oeis.org

2, 7, 11, 15, 21, 25, 31, 35, 41, 49, 53, 61, 67, 71, 77, 85, 93, 97, 105, 111, 115, 123, 129, 137, 147, 153, 157, 163, 167, 173, 189, 195, 203, 207, 219, 223, 231, 239, 245, 253, 261, 265, 277, 281, 287, 291, 305, 319, 325, 329, 335, 343, 347, 359, 367, 375
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Mar 05 2010

Keywords

Comments

Apart from the first term, same as A078916 = prime(n) + 2n.

Examples

			a(1)=2 because 2+0=2; a(2)=7 because 3+4=7.
		

Crossrefs

Programs

  • Maple
    Contribution from R. J. Mathar, Apr 14 2010: (Start)
    A163300 := proc(n) option remember ; if n = 1 then 0; else for a from procname(n-1)+2 by 2 do if not isprime(a) then return a ; end if; end do; end if; end proc:
    A174008 := proc(n) ithprime(n)+A163300(n) ; end proc: seq(A174008(n),n=1..80) ; (End)

Formula

a(n)=A000040(n)+A163300(n).
a(n) ~ n log n.