How to find the Closed Form Expression of the function $f$ that outputs the number of ones in the binary expression of a given natural number?

51 Views Asked by At

I am interested in finding the closed form expression of the number of ones in the binary expression of the given natural number.

I have no idea whether it is possible to do so. Any help is appreciated.