Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

A function $$f : \{0,1\}^n \to \{0,1\}$$ is called symmetric if for every $x_1,x_2,\ldots,x_n \in \{0,1\}$ and every permutation $\sigma$ of $\{1,2,\ldots,n\}$, we have $$f(x_1,x_2,\ldots,x_n) = f(x_{\sigma(1)},x_{\sigma(2)},...,x_{\sigma(n)})$$ What is the number of such symmetric functions ?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If $f:\{0,1\}^n \rightarrow \{0,1\}$ is symmetric, the value of $f(x_1,x_2, \ldots x_n)$ will be determined simply by the number of 1's in $\{x_1, x_2 \ldots x_n\}$.

So partition $\{0,1\}^n$ into $n+1$ parts, say $\mathcal S_k$ each consisting $n$-bit strings with exactly $k$ number of 1's. The function $f$ maps an $n$-bit string to either 0 or 1. Hence the total number of such functions is $2^{n+1}$.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.