A372505 a(n) = log_2(A368473(n)).
0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 2, 2, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[n_] := Module[{p = Times @@ FactorInteger[n][[;; , 2]], e}, e = IntegerExponent[p, 2]; If[p == 2^e, e, Nothing]]; Array[f, 150]
-
PARI
lista(kmax) = {my(p, e); for(k = 1, kmax, p = vecprod(factor(k)[, 2]); e = valuation(p, 2); if(p >> e == 1, print1(e, ", ")));}
Comments