login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165994 a(n) is the number of nonzero values of floor (j^2/prime(n)), over 1 <= j < prime(n). 1
0, 1, 2, 4, 7, 9, 12, 14, 18, 23, 25, 30, 34, 36, 40, 45, 51, 53, 58, 62, 64, 70, 73, 79, 87, 90, 92, 96, 98, 102, 115, 119, 125, 127, 136, 138, 144, 150, 154, 159, 165, 167, 177, 179, 182, 184, 196, 208, 211, 213, 217, 223, 225, 235, 240, 246, 252, 254, 260 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

C. H. Gribble, Table of n, a(n) for n = 1..78498 (i.e., for primes < 10^6).

FORMULA

a(n) = floor(A000040(n) - sqrt(A000040(n))). - Jon Maiga, Nov 13 2018

MATHEMATICA

Table[Floor[Prime[n] - Sqrt[Prime[n]]], {n, 60}] (* Vincenzo Librandi, Nov 13 2018 *)

PROG

MAGMA) [Floor(NthPrime(n) - Sqrt(NthPrime(n))): n in [1..60]]; // Vincenzo Librandi, Nov 13 2018

CROSSREFS

Cf. A165974.

Sequence in context: A189677 A087733 A065027 * A163293 A188045 A247912

Adjacent sequences:  A165991 A165992 A165993 * A165995 A165996 A165997

KEYWORD

nonn

AUTHOR

Christopher Hunt Gribble, Oct 03 2009

EXTENSIONS

Definition rephrased by R. J. Mathar, Oct 09 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 27 01:13 EDT 2021. Contains 346300 sequences. (Running on oeis4.)