Sum of digits for 2^n