OFFSET
1,2
COMMENTS
Analogous to highly divisible numbers (A002182).
LINKS
Michael De Vlieger and David A. Corneth, Table of n, a(n) for n = 1..563 (terms 55-149 from David A. Corneth), Mar 08 2017
EXAMPLE
MATHEMATICA
Function[w, Map[Position[w, #][[1, 1]] &, Union@ Rest@ FoldList[Max, 0, w]]]@ Table[Count[Range@ n, k_ /; PowerMod[n, Floor@ Log2@ n, k] == 0], {n, 10^3}] (* simplest, or *)
f[n_] := If[n == 1, 1, Length@ Function[w, ToExpression@ StringJoin["Module[{n = ", ToString@ n, ", k = 0}, Flatten@ Table[k++, ", Most@ Flatten@ Map[{#, ", "} &, #], "]]"] &@ MapIndexed[Function[p, StringJoin["{", ToString@ Last@ p, ", 0, Log[", ToString@ First@ p, ", n/(", ToString@ InputForm[Times @@ Map[Power @@ # &, Take[w, First@ #2 - 1]]], ")]}"]]@ w[[First@ #2]] &, w]]@Map[{#, ToExpression["p" <> ToString@ PrimePi@ #]} &, FactorInteger[n][[All, 1]]]]; Function[w, Map[Position[w, #][[1, 1]] &, Union@ Rest@ FoldList[Max, 0, w]]]@ Array[f, 14000] (* Michael De Vlieger, Mar 08 2017, more efficient *)
PROG
(Python)
from itertools import count, islice
from functools import lru_cache
from sympy import primefactors, integer_log
def A244052_gen(): # generator of terms
c = 1
yield c
@lru_cache(maxsize=None)
def g(x, m, ps): return 1 if x == 1 else sum(g(x//ps[m]**i, m-1, ps) for i in range(integer_log(x, ps[m])[0]+1)) if m else integer_log(x, ps[0])[0]+1
for n in count(2):
ps = tuple(sorted(primefactors(n)))
m = g(n, len(ps)-1, ps)
if m>c:
c = m
yield n
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Jun 18 2014
EXTENSIONS
Edited, giving new name and example. - Wolfdieter Lang, Jun 29 2014
STATUS
approved
