Problem about counting integral

Are you trying to get Lotto combinations consisting of unique numbers, with no repeats within the lotto combination?

If so, see

I am intrigued by your use of the bitwise and block. What are you trying to achieve with that?