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-2 of 2 results.

A322371 a(n) is the least practical number that is divisible by prime(n).

Original entry on oeis.org

2, 6, 20, 28, 66, 78, 204, 228, 276, 348, 496, 666, 820, 860, 1128, 1272, 1416, 1464, 2010, 2130, 2190, 2844, 2988, 3204, 4074, 4848, 4944, 5136, 5232, 5424, 7620, 7860, 8220, 8340, 8940, 9060, 9420, 9780, 10020, 12456, 12888, 13032, 13752, 13896, 16548, 16716, 17724
Offset: 1

Views

Author

David A. Corneth, Dec 05 2018

Keywords

Examples

			For n = 4 we have prime(n) = prime(4) = 7. The least k such that k*prime(4) is practical is k = 4. Therefore, a(4) = 4*prime(4) = 28.
		

Crossrefs

Programs

  • Mathematica
    PracticalQ[n_] := Module[{f, p, e, prod = 1, ok = True}, If[n < 1 || (n > 1 && OddQ[n]), False, If[n == 1, True, f = FactorInteger[n]; {p, e} = Transpose[f]; Do[If[p[[i]] > 1 + DivisorSigma[1, prod], ok = False; Break[]]; prod = prod p[[i]]^e[[i]], {i, Length[p]}]; ok]]];
    a[n_] := Module[{p = Prime[n]}, For[i = 1, True, i++, If[PracticalQ[p i], Return[p i]]]];
    Table[a[n], {n, 1, 50}] (* Jean-François Alcover, Jan 19 2019, after T. D. Noe in A005153 *)
  • PARI
    a(n) = my(p = prime(n)); for(i = 1, oo, if(is_A005153(p * i), return(p * i))) \\ David A. Corneth, Dec 31 2018

Formula

From Charlie Neder, Jan 30 2019: (Start)
Let p = prime(n). Then a(n) = p*k, where k is the least practical number such that sigma(k)+1 >= p.
Proof: By Stewart's theorem (see link), since a(n) is practical, each prime factor of a(n) is at most 1 plus the sum of divisors of the product of the smaller primes in a(n). In particular, dividing a(n) by its largest prime factor will leave a practical number, since the criterion applies inductively on the product of smaller primes, so if the largest prime factor of a(n) is greater than p or the exponent of p is greater than 1, then a(n) can be reduced to a smaller multiple of p and is thus not minimal.
The choice of k is then the least practical number allowed by the theorem. (End)

Extensions

New name by Michel Marcus, Jan 18 2019

A333676 Least positive integer k such that k*prime(n) is an Ulam number (A002858).

Original entry on oeis.org

1, 1, 29, 4, 1, 1, 6, 2, 3, 3, 2, 4, 2, 6, 1, 1, 3, 12, 6, 7, 3, 4, 13, 4, 1, 13, 2, 21, 12, 3, 16, 1, 5, 5, 19, 8, 22, 15, 4, 13, 2, 5, 2, 26, 1, 15, 38, 6, 16, 12, 10, 13, 1, 2, 8, 4, 38, 5, 15, 205, 2, 5, 10, 31, 4, 6, 16, 8, 31, 20, 5, 7, 2, 4, 4, 18, 3, 3, 4, 1, 3, 8, 1, 2, 10, 8, 15, 12
Offset: 1

Views

Author

Frank M Jackson, Apr 01 2020

Keywords

Comments

Conjecture: For any prime number p there exists a positive integer k such that k*p is an Ulam number.

Examples

			a(3) = 29 because 5*29 gives the Ulam number 145 and this is the smallest Ulam number divisible by 5.
		

Crossrefs

Programs

  • Mathematica
    lst1 = ReadList["https://oeis.org/A002858/b002858.txt", {Number, Number}]; lst = {}; Do[n=1; While[!IntegerQ[k=lst1[[n]][[2]]/Prime[m]], n++]; AppendTo[lst, k], {m, 1, 100}]; lst
Showing 1-2 of 2 results.