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.

A353124 Numbers k which have a record number of non-divisors < k (i.e., A049820(k)).

Original entry on oeis.org

1, 3, 5, 7, 9, 11, 13, 17, 19, 22, 23, 25, 27, 29, 31, 34, 35, 37, 41, 43, 46, 47, 49, 51, 53, 57, 58, 59, 61, 65, 67, 71, 73, 77, 79, 82, 83, 86, 87, 89, 93, 94, 95, 97, 101, 103, 106, 107, 109, 113, 118, 119, 121, 123, 125, 127, 131, 134, 137, 139, 142, 143
Offset: 1

Views

Author

Johan Lindgren, Apr 24 2022

Keywords

Comments

From Jon E. Schoenfield, Apr 30 2022: (Start)
This sequence includes all noncomposite numbers, the squares of all odd primes, and the cube of every odd prime p such that p^3 - 2 is composite.
It also includes every number k of the form p*q, with p and q distinct primes, such that k-2 is composite and k-1 is neither a prime nor the square of a prime.
In general, it includes every number k such that tau(k-j) > tau(k) - j for each j in 1..tau(k)-1.
Terms with larger numbers of divisors occur less frequently. The first terms with 0, 1, 2, 3, and 4 distinct prime factors are 1, 3, 22, 2110, and 17585778, respectively (each of which is squarefree). What is the first term with 5 distinct prime factors?
(End)

Crossrefs

Programs

  • Mathematica
    s = {}; fm = -1; Do[f = n - DivisorSigma[0, n]; If[f > fm, fm = f; AppendTo[s, n]], {n, 1, 120}]; s (* Amiram Eldar, Apr 25 2022 *)
  • PARI
    f(n) = n - numdiv(n); \\ A049820
    lista(nn) = {my(m=-oo, list=List(), fn); for (n=1, nn, if ((fn=f(n)) > m, listput(list, n); m = fn;);); Vec(list);} \\ Michel Marcus, Apr 25 2022