MHB Count the number of strings of length 8...

shamieh
Messages
538
Reaction score
0
Count the number of strings of length $8$ over $A = \{w, x, y, z\}$ that begins with either $w$ or $y$
and have at least one $x$


I don't understand this question at all. First of all, this is a set A that contains 4 elements $w,x,y,z$ correct? They are asking me to count the number of strings of length 8? None of these are length 8, what are they asking me? Also wouldn't this be:

$A = \{ wxyz, wzxy, wyxz, ... \}$ I mean I'm going to have a lot of different combinations right? Also, every single group contained in the set is going to have at least one $x$.. I am so confused here.
 
Physics news on Phys.org
Wait.. am I making this harder than it is? Is that just $4^8$
 
|Ok I think I've figured it out.. Can someone check my work? Sorry to be a pest with the triple posts...

$A = \{w,x,y,z\}$

$U = \{w,y\} * A^7$

$S = \{w,y\} * \{w,y,z\}^7$

$|U - S| = |U| - |S|$

$= |\{w,y\} * A^7| - |\{w,y\} * \{w,y,z\}^7|$

$= |\{w,y\}||A|^7 - |\{w,y\}||\{w,y,z\}|^7$

$= 2(4^7) - 2(3^7) = 28,394$
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Back
Top