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.

Showing 1-3 of 3 results.

A385653 Least k such that A385652(k) = n.

Original entry on oeis.org

2, 4, 8, 12, 18, 24, 27, 36, 48, 54, 72, 80, 90, 100, 120, 125, 135, 150, 160, 180, 196, 210, 224, 245, 252, 280, 294, 315, 336, 343, 350, 378, 392, 420, 441, 448, 490, 504, 525, 560, 567, 588, 630, 672, 686, 700, 735, 756, 784, 840, 875, 882, 896, 945, 980
Offset: 1

Views

Author

Pontus von Brömssen, Jul 06 2025

Keywords

Comments

A385654(n) is uniquely popular on the interval [2,a(n)]; see A289662.
Equivalently, a(n) is the least k >= 2 such that A078899(k) = n.

Crossrefs

Programs

  • PARI
    gpf(n) = if (n==1,1, vecmax(factor(n)[,1])); \\ A006530
    f(n) = my(v=vector(n, k, gpf(k)), s=Set(v)); vecmax(apply(x->#x, vector(#s, i, select(x->(x==s[i]), v)))); \\ A385652
    a(n) = my(k=2); while (f(k) !=n, k++); k; \\ Michel Marcus, Jul 06 2025

A385654 Greatest prime factor of A385653(n).

Original entry on oeis.org

2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 13, 13, 13, 13, 13, 7, 13, 13, 13, 13, 13, 13
Offset: 1

Views

Author

Pontus von Brömssen, Jul 06 2025

Keywords

Comments

A number appears in this sequence if and only if it is a uniquely popular prime; see A289662. a(n) is uniquely popular on the interval [2,A385653(n)].

Crossrefs

Programs

  • PARI
    gpf(n) = if (n==1,1, vecmax(factor(n)[,1])); \\ A006530
    f(n) = my(v=vector(n, k, gpf(k)), s=Set(v)); vecmax(apply(x->#x, vector(#s, i, select(x->(x==s[i]), v)))); \\ A385652
    a(n) = my(k=2); while (f(k) !=n, k++); gpf(k); \\ Michel Marcus, Jul 06 2025

A386007 Least k such that there are exactly n primes that are popular on the interval [2,k] (see A385503); i.e., exactly n primes share the lead as the most common greatest prime factor of the numbers 2..k.

Original entry on oeis.org

2, 3, 70, 2626355
Offset: 1

Views

Author

Pontus von Brömssen, Jul 14 2025

Keywords

Examples

			a(3) = 70, because the 3 primes 3, 5, and 7 all occur A385652(70) = 10 times (the maximum) as the greatest prime factor of the numbers 2..70, and for earlier intervals there is never a tie between 3 numbers.
a(4) = 2626355, because the 4 primes 73, 83, 109, and 113 all occur A385652(2626355) = 7634 times (the maximum) as the greatest prime factor of the numbers 2..2626355, and for earlier intervals there is never a tie between 4 numbers.
		

Crossrefs

Programs

  • Mathematica
    gpf[n_]:=FactorInteger[n][[-1,1]];a[n_]:=Module[{k=1},Until[Length[Commonest[gpf/@Range[2,k]]]==n,k++];k] (* James C. McMahon, Jul 20 2025 *)
Showing 1-3 of 3 results.