|
|
A085154
|
|
a(n+1) = smallest number >a(n) having more prime factors than a(n), with or without repetitions; a(1)=1.
|
|
0
|
|
|
1, 2, 4, 6, 8, 10, 12, 16, 18, 24, 30, 32, 33, 36, 42, 48, 60, 64, 65, 66, 72, 78, 80, 84, 96, 102, 104, 105, 108, 110, 112, 114, 120, 128, 129, 130, 132, 144, 150, 160, 165, 168, 192, 195, 196, 198, 200, 204, 208, 210, 216, 220, 224, 228, 240, 256, 258, 260
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
MATHEMATICA
|
a[n_] := a[n] = If[n == 1, 1, Module[{k, nu, om}, For[k = a[n-1]+1; nu = PrimeNu[a[n-1]]; om = PrimeOmega[a[n-1]], True, k++, If[PrimeNu[k] > nu || PrimeOmega[k] > om, Return[k]]]]];
|
|
PROG
|
(Python)
from sympy import factorint
def aupton(terms):
alst, wn, Wn, k = [1], 0, 0, 1
while len(alst) < terms:
while True:
k += 1
pf = factorint(k, multiple=True)
wk, Wk = len(pf), len(set(pf))
if wk > wn or Wk > Wn:
break
alst.append(k)
wn, Wn = wk, Wk
return alst
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|