How many even subsets are there?

  • Thread starter Thread starter xnull
  • Start date Start date
  • Tags Tags
    Subsets
AI Thread Summary
For a finite set S with cardinality m, there are 2^(m-1) even subsets and an equal number of odd subsets. The total number of subsets is 2^m, and the relationship between even and odd subsets can be derived from the binomial theorem. The discussion initially explored a recurrence relation to find a closed form for even subsets but concluded with the established result. The problem is thus solved, confirming the equal distribution of even and odd subsets.
xnull
Messages
16
Reaction score
0
Given a finite set S of cardinality m:
Decide how many even or odd subsets there are of S (finding one should give you the other).

Here is what I've done so far.

First, I looked to a multiplication out by hand.

(m * (m-1)) + (m * (m-1) * (m-2) * (m-3)) + (m * (m-1) * (m-2) * (m-3) * (m-4) * (m-5)) + ...

Well, I noticed I could factor (m * (m-1)) out which gives

(m * (m-1)) * (1 + ((m-2) * (m-3)) + ((m-2) * (m-3) * (m-4) * (m-5)) + ...)

Inside the second group of parenteses I noticed I could factor out ((m-2) * (m-3)) and so on

(m * (m-1)) * (1 + ((m-2) * (m-3) * (1 + ((m-4) * (m-5) * (1 + ... )))))))

Because this was a tad ugly I made a recurrence relation from it

R_{k} = 0
R_{i} = (m-2i)(m-2i-1)(1+R_{i+1})
R_{0} would give the solution for the number of even subsets.

I can't seem to find the closed form.

This is the only direction I've gone with the problem so far.

Does anyone have any directions to go on this or a previously published solution to the problem? I looked all over and couldn't find one but it's the kind of problem I would expect to have already been solved.
 
Physics news on Phys.org
Solved it.

Heh. Silly to have missed it.

2^{m-1} even subsets and odd subsets.
 
Remember that the number of subsets (of a set with m elements) with k elements is given by:

\binom{m}{k}

Now, from the binomial theorem (or the fact that there are as many odd subsets as even ones) and the fact that the total number of subsets is 2m, you should be able to deduce that the number of odd subsets is:

\sum_{k\;odd}\binom{m}{k}=2^{m-1}
 
I was reading a Bachelor thesis on Peano Arithmetic (PA). PA has the following axioms (not including the induction schema): $$\begin{align} & (A1) ~~~~ \forall x \neg (x + 1 = 0) \nonumber \\ & (A2) ~~~~ \forall xy (x + 1 =y + 1 \to x = y) \nonumber \\ & (A3) ~~~~ \forall x (x + 0 = x) \nonumber \\ & (A4) ~~~~ \forall xy (x + (y +1) = (x + y ) + 1) \nonumber \\ & (A5) ~~~~ \forall x (x \cdot 0 = 0) \nonumber \\ & (A6) ~~~~ \forall xy (x \cdot (y + 1) = (x \cdot y) + x) \nonumber...
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top