A383005 Exponent of the highest power of 2 dividing the n-th biquadratefree number.
0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
biqFreeQ[n_] := AllTrue[FactorInteger[n][[;; , 2]], # < 4 &]; IntegerExponent[Select[Range[200], biqFreeQ], 2]
-
PARI
isbiqfree(n) = {my(f = factor(n)); for(i=1, #f~, if(f[i, 2] > 3, return (0))); 1; } list(lim) = for(k = 1, lim, if(isbiqfree(k), print1(valuation(k, 2), ", ")));
Comments