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.

A165994 a(n) is the number of nonzero values of floor (j^2/prime(n)), over 1 <= j < prime(n).

Original entry on oeis.org

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
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A165974.

Programs

  • Magma
    [Floor(NthPrime(n) - Sqrt(NthPrime(n))): n in [1..60]]; // Vincenzo Librandi, Nov 13 2018
  • Mathematica
    Table[Floor[Prime[n] - Sqrt[Prime[n]]], {n, 60}] (* Vincenzo Librandi, Nov 13 2018 *)

Formula

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

Extensions

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