A372330 The number of divisors of the smallest multiple of n whose number of divisors is a power of 2 (A036537).
1, 2, 2, 4, 2, 4, 2, 4, 4, 4, 2, 8, 2, 4, 4, 8, 2, 8, 2, 8, 4, 4, 2, 8, 4, 4, 4, 8, 2, 8, 2, 8, 4, 4, 4, 16, 2, 4, 4, 8, 2, 8, 2, 8, 8, 4, 2, 16, 4, 8, 4, 8, 2, 8, 4, 8, 4, 4, 2, 16, 2, 4, 8, 8, 4, 8, 2, 8, 4, 8, 2, 16, 2, 4, 8, 8, 4, 8, 2, 16, 8, 4, 2, 16, 4
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[p_, e_] := 2^Ceiling[Log2[e + 1]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
-
PARI
s(n) = {my(e=logint(n + 1, 2)); if(n + 1 == 2^e, n + 1, 2^(e+1))}; a(n) = {my(f=factor(n)); prod(i=1, #f~, s(f[i, 2]))};
Comments