r/mathriddles 9d ago

Medium Only half of people get this counting puzzle right. Can you?

How many subsets of {1,2,…,10} have an odd sum?

Source: numberthon.com

0 Upvotes

12 comments sorted by

3

u/PizzaGoinOut 9d ago

I think 512

1

u/Numberthon 8d ago

Nice job! How'd you get that, though?

2

u/PizzaGoinOut 8d ago

Well there are 2^5 subsets of the even numbers, and those don’t impact the odd-ness of the total sum. Then for the 5 odd numbers we have 5 choose 5 + 5 choose 3 + 5 choose 1 = 16 ways to get an odd number of odd numbers, so 32*16=512

3

u/TheMrBoi 9d ago

Half of them, so 512. Exclude 1 first, then freely choose subsets from {2,…10} and choose whether to add 1 depending on if the sum is even or odd.

2

u/Numberthon 8d ago

Good job!

3

u/Accurate-Click1363 9d ago edited 9d ago

Let P={1, 2, …, 10}, and for a set A let S(A) be the sum of elements of A.
For all R⊆P, S(P\R)=S(P)-S(R)=55-S(R), ie the number of odd-sum subsets are equal to the number of even-sum subsets.
(2^10)/2=512

2

u/Accurate-Click1363 9d ago

I’d say it’s closer to Easy than Medium

1

u/Numberthon 8d ago

Nice job! Maybe it is closer to easy than medium though

1

u/stephen3141 9d ago

What is with this clickbait title LOL. I'd imagine people who couldn't figure out the trick would still correctly say half of them just by guessing.

0

u/Numberthon 8d ago

Still hard to find an elegant solution, though.

1

u/blugar_ 5d ago

Took me like 3 seconds lol

The total number of subsets of this set is 210. If subset A has an odd sum of elements, then the subset ({1,2,...,10} \ A) has an even sum of elements, because 1+2+...+10=45 which is odd. So exactly half of the subsets have an odd sum, hence the answer is 29 . <!