|
|
|
|
1, 2, 4, 8, 12, 16, 24, 36, 66, 72, 132, 144, 264, 420, 528, 840, 1026, 1056, 1680, 2052, 4104, 8208, 16416, 32832, 65664, 73920, 84000, 110880, 118800, 131328, 133380, 237600, 263340, 266760, 526680, 533520, 1053360, 1067040, 2106720, 2134080, 3160080, 4213440
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The corresponding record values are 1, 2, 3, 4, 9/2, 5, 6, 15/2, 8, 10, ... .
|
|
LINKS
|
|
|
EXAMPLE
|
The values of A093653(k)/A000120(k) for k=1..10 are 1, 2, 3/2, 3, 3/2, 3, 4/3, 4, 5/2 and 3. The record values, 1, 2, 3 and 4, occur at 1, 2, 4 and 8, the first 4 terms of this sequence.
|
|
MATHEMATICA
|
seq[nmax_] := Module[{s = {}, rm = 0, r}, Do[If[(r = DivisorSum[n, DigitCount[#, 2, 1] &]/DigitCount[n, 2, 1]) > rm, rm = r; AppendTo[s, n]], {n, 1, nmax}]; s]; seq[10^4]
|
|
PROG
|
(PARI) lista(kmax) = {my(rm = 0, r); for(k = 1, kmax, r = sumdiv(k, d, hammingweight(d))/hammingweight(k); if(r > rm, rm = r; print1(k, ", "))); }
from itertools import count, islice
def agen(r=0): yield from ((m, r:=fm)[0] for m in count(1) if (fm:=f(m))>r)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|