proposed
approved
proposed
approved
editing
proposed
a(n) = floor(prime(n) - (n+1)*(log(n) + log(log(n))) + n) for n > 1.
See A059112 for floor( prime(n) - n*log(n) - n*log(log(n)) + n ) where prime(n) is the n-th prime.
a(8) = 1 because floor(prime(8)-(8+1)*(log(8)+log(log(8))) + 8) = floor(19-9*(2.0794415...+0.7320993...) + 8) = floor(1.6961318...) = 1.
(MAGMAMagma) [Floor((NthPrime(n)-(n+1)*(Log(n)+Log(Log(n)))+n)): n in [2..80]]; // Vincenzo Librandi, Oct 16 2014
proposed
editing
editing
proposed
a(n) = floor( prime(n)-(n+1)*(log(n)+log(log(n))) + n ) for n>1.
a(8) = 1 because floor(prime(8)-(8+1)*(log(8)+log(log(8))) + 8) = floor(19-9*(2.0794415...+.7320993...)+ 8) = floor(1.6961318...) = 1.
(PARI) a(n) = floor(prime(n)-(n+1)*(log(n)+log(log(n))) + n); \\ Michel Marcus, Mar 05 2022
See A059112 for floor( pprime(n) - n*log(n) - n*log(log(n)) + n ) where pprime(n) is n-th prime.
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
See A059112 for floor( p(n) - n*lnlog(n) - n*lnlog(lnlog(n)) + n ) where p(n) is n-th prime.
approved
editing