Binary digit representation of moments for maximum partial sums of random variables and applications