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!)
A248911 a(n) = floor( prime(n) - (n+1)*log(n) ). 2
2, 0, 0, 0, 1, 0, 1, 0, 1, 3, 2, 4, 5, 3, 3, 5, 8, 6, 8, 8, 6, 7, 7, 9, 13, 13, 10, 10, 7, 7, 17, 16, 18, 15, 21, 18, 19, 21, 20, 21, 23, 20, 25, 22, 21, 19, 26, 33, 32, 29, 28, 29, 26, 31, 32, 33, 34, 31, 32, 31, 28, 32, 41, 40, 37, 36, 45, 45, 50, 47, 46, 46 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The function log gives the natural logarithm (to base e).
See A059111 for the sequence a(n) = floor(prime(n)-n*log(n)).
LINKS
EXAMPLE
a(8) = 0 because floor(prime(8)-(8+1)*log(8)) = floor(19 -9*2.07944154...) = floor(.28502612...) = 0.
MAPLE
with(numtheory):
for n from 1 to 200 do:
p:=floor(evalf(ithprime(n)-(n+1)*ln(n))): printf(`%d, `, p):
od:
MATHEMATICA
Table[Floor[Prime[n]-(n+1)Log[n]], {n, 100}]
PROG
(Magma) [Floor(NthPrime(n)-(n+1)*Log(n)): n in [1..80]]; // Vincenzo Librandi, Oct 16 2014
CROSSREFS
Sequence in context: A322389 A336388 A277735 * A116681 A359911 A131371
KEYWORD
nonn
AUTHOR
Michel Lagneau, Oct 16 2014
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 March 28 08:22 EDT 2024. Contains 371236 sequences. (Running on oeis4.)