A372472 Number of zeros in the binary expansion of the n-th squarefree number.
0, 1, 0, 1, 1, 0, 2, 1, 1, 1, 0, 3, 2, 2, 2, 1, 2, 1, 1, 0, 4, 4, 3, 3, 3, 2, 3, 3, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 5, 5, 4, 4, 4, 3, 4, 4, 3, 3, 2, 4, 3, 3, 3, 2, 3, 2, 2, 2, 1, 4, 3, 3, 2, 3, 3, 2, 2, 2, 1, 3, 3, 2, 2, 1, 2, 1, 0, 6, 6, 5, 5, 5, 5, 5, 4, 4
Offset: 1
Examples
The 12th squarefree number is 17, with binary expansion (1,0,0,0,1), so a(12) = 3.
Crossrefs
Positions of first appearances are A372473.
Programs
-
Maple
A372583 := proc(n) A023416(A005117(n)) ; end proc: seq(A372583(n),n=1..200) ; # R. J. Mathar, May 20 2024
-
Mathematica
DigitCount[Select[Range[100],SquareFreeQ],2,0]