Combinatorics: What are the total number of ways that a string of length n can be formed if it consists of letters and must contain an even number of x's.
can you explain a bit?
string is of any length, contains letters, and must contain an even number of x's, meaning 0 x's is still okay
how many possible strings of length n can be formed given those rules
looks pretty difficult
the professor asks for a recursive definition, not exact formula, so (n-1) applies if we have the base cases.
if n is even then, |dw:1343154558467:dw|
I think it has to do with adding an x to a bad string and adding another letter to a good string, therein lies a recursive definition.
i guess it's better to try it without x's first.
if n<26, 26Cn what if n>26 ??
oh ... even this is incorrect. we are able to choose any letter any number of times right!!
yes
for x < 26, \[ \sum_{n=1}^{26} \binom{26}{n}\binom{x}{n}\]
seems this is incorrect too.
number of bad strings are those strings with an odd number of x's
very puzzling
this should work out for string of length less than 26 \sum_{n=1}^{x} \binom{26}{n}\binom{x}{n}
\[ \sum_{n=1}^{x} \binom{26}{n}\binom{x}{n}\]
it should be easier than this, as the definition needs to be recursive, and base cases are easy to determine, maybe I'll chart possibilities up to 5 and see what it looks like
Join our real-time social learning platform and learn together with your friends!