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!)
A100486 a(n) = pi(n) + prime(n). 4
2, 4, 7, 9, 14, 16, 21, 23, 27, 33, 36, 42, 47, 49, 53, 59, 66, 68, 75, 79, 81, 87, 92, 98, 106, 110, 112, 116, 119, 123, 138, 142, 148, 150, 160, 162, 169, 175, 179, 185, 192, 194, 205, 207, 211, 213, 226, 238, 242, 244, 248, 254, 257, 267, 273, 279, 285, 287 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A000720(n) + A000040(n). - Wesley Ivan Hurt, Jan 28 2014
EXAMPLE
a(21) = pi(21) + prime(21) = 8 + 73 = 81.
MAPLE
with(numtheory); A100486:=n->pi(n) + ithprime(n); seq(A100486(n), n=1..60); # Wesley Ivan Hurt, Jan 28 2014
MATHEMATICA
Table[PrimePi[n] + Prime[n], {n, 60}]
PROG
(PARI) a(n) = primepi(n) + prime(n); \\ Michel Marcus, Feb 24 2023
(Magma) [#PrimesUpTo(n) + NthPrime(n): n in [1..80]]; // G. C. Greubel, Apr 04 2023
(SageMath) [prime_pi(n) + nth_prime(n) for n in range(1, 81)] # G. C. Greubel, Apr 04 2023
CROSSREFS
Sequence in context: A014817 A326502 A090893 * A139533 A227116 A180742
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Nov 22 2004
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)