Problem 3247 · Medium

Number of Subsequences with Odd Sum

Track how many subsets have an odd sum and how many have an even sum; each element swaps or doubles those two counts.

Open the interactive visualisation