You are not logged in.
The second answer is right, but for the first one you need to take an average.
So the answer would be (1% + 2% + 5%)/3 = ~2.6%.
The 16 appeared because Jane multiplied both parts of the fraction by 4. That way she had an appearance of 2(x+y) on the top, which could be replaced with P.
You've used the formula correctly in the other question too, but remember that the formula tells you the area's upper bound. 135 is the right answer because it is less than 144, and so *could* be the area of the rectangle.
All the other options are above the upper bound and so are impossible choices.
By realising that possible areas depend only on an upper bound, you can actually save yourself quite a bit of work. With any question like this, the answer will always be the lowest option.
I'm not sure how much potential for difficulty this has, but I thought I'd throw it out and see if people can make interesting ones.
The puzzle involves a chessboard that contains:
-One white piece
-One black king
-Some other black pieces
The white piece moves around the board capturing things, and acquiring the properties of whatever it has just captured. It wants to capture the black king.
One puzzle might look like this:
Here the solution would be to capture the bishop, then the rook and finally the king.
Here's a (hopefully) harder one:
I just put code there because I thought it was a good way to explain my idea.
Hopefully even if you don't know MATLAB you can see what I'm trying to do.
That idea is much quicker, but it uses the abs function which could be considered cheating.
After thinking more about my suggestion, if you were allowed to check for positivity of numbers then it'd be fairly trivial. a < b iff a-b < 0, etc.
This would work though:
Yep, that's exactly right.
Venn diagrams help a lot with this kind of thing.
I think it's easier to list all the length-n strings that don't contain three zeroes in a row.
There are three types of these:
- Type 1: those that end with 1
- Type 2: those that end with 10 (and the string 0)
- Type 3: those that end with 100 (and the string 00)
You can get relations out of these quite nicely.
Starting with length-1 strings, we have 0 and 1.
That is one Type 1 string, one Type 2 string and no Type 3 strings.
We can write this as (1,1,0).
The length-2 strings are 00, 01, 10, 11.
The number of types can be summarised as (2,1,1).
The length-3 strings are 001, 010, 011, 100, 101, 110, 111.
This summarises as (4,2,1).
You can get the triple for a length-n string by using the triple for the length-(n-1) string.
For every length(n-1) string, you can get a Type 1 length-n string by adding a 1 to the end.
For every Type 1 length(n-1) string, you can get a Type 2 length-n string by adding a 0.
And similarly, you get a Type 3 length-n by adding to a Type 2 length(n-1).
Therefore, if the triple for one length of string is (a,b,c), then the triple for the next length of string will be (a+b+c, a, b).
Going back to your question, you can find the number of strings that do contain 000 by finding the number that don't, and taking this away from 2^n.
Hopefully I've explained that well enough, but here's a table to show what I mean.
Length | Type 1s | Type 2s | Type 3s | Total | Strings containing 000
--------------------------------------------------------------------------
1 | 1 | 1 | 0 | 2 | 0
2 | 2 | 1 | 1 | 4 | 0
3 | 4 | 2 | 1 | 7 | 1
4 | 7 | 4 | 2 | 13 | 3
5 | 13 | 7 | 4 | 24 | 8
6 | 24 | 13 | 7 | 44 | 20
7 | 44 | 24 | 13 | 81 | 47
8 | 81 | 44 | 24 | 149 | 107
9 | 149 | 81 | 44 | 274 | 238
...
I'd do this by listing the first few terms and spotting the pattern.
The integral of that function on any interval is 0.
My lecturer only mentioned it in passing though, saying the proof was far beyond the scope of the course.
That said, it's kind of understandable since the rationals are countable and the irrationals are not.
Thinking of integration as an area is certainly a useful technique when it works, but the problem is that there are some integrable functions where that doesn't make sense.
One example would be
f(x) = {1, if x is rational.
{0, otherwise.
Yeah, I thought that might be considered cheating.
"No officer, I wasn't comparing, I was just checking for minus signs! Honest!"
The other one's not a problem though. You increment the numbers iff they are all non-positive.
If any of them are positive, you decrement instead.
It depends on exactly what you're allowed to do.
One way would be to subtract one from every element in the list, and keep doing so until only one of the elements is positive. (Or if they all start non-positive, add one to each element until one of them becomes positive)
Ah, now I see how this works. Nice puzzle.
Not sure if this is rigourous enough for you, but:
e^x > 0 for all x, so clearly there is no negative solution.
d(e^x)/dx = e^x, which is >1 for all x>0. Since e^0 = 1 > 0 and dx/dx = 1, there can't be any solution greater than 0 either. Hence there is no solution to e^x = x.
You clearly understand what is going on in the question, because you got the first two answers right.
How did you get to them?
(I wouldn't worry too much about finding an exact formula, since the rule doesn't translate to an equation very well. I've got one written down, but it's not pretty.)
I agree with bobby. I think having the alphabet on top of the ad looks better than the other way around.
1) loses points with me because I have to scroll down to see XYZ.
Mine is more efficient, but 220ms is still virtually nothing and it probably took me a good while longer to write mine.
I tend to try making my code as optimal as I can even when it's not really necessary. Yours is probably a lot easier to debug too. (In fact, for a bit mine was giving a different answer to yours, and it took me a little while to figure out the reason)
Still, at least it's good practice for problems where efficiency can mean the difference between minutes and days.
By the way, thanks for mentioning FreeMat. I only had access to MATLAB while at University, and I've been looking for a good replacement for a while now.
Ah, I like your way. Nice and simple, write in under a minute, run in under a second.
Here's the overly complicated thing I'd have done:
I've always written it the opposite of that way. But I also use a |.
ie., for me, P(A|B) means P(A), given B.
Since the questions are symmetric though, it doesn't matter too much. No matter how you interpret it, you'll give a set of correct answers.
The way to answer these questions is to work out the ways of both events happening, then divide by the ways of the given event happening.
For the first question, there is only one way of rolling a 5 with the first dice and totalling 10 - rolling two fives.
But there are 6 ways of rolling a 5 with the first:
(5,1); (5,2); (5,3); (5,4); (5,5); (5,6)
Therefore, P(B|A) is 1/6.
The second question has the same first half.
But this time we work out that there are 3 ways of rolling a 10 with both:
(4,6); (5,5); (6,4)
Therefore, P(A|B) is 1/3.
The other four are answered in much the same way.
The surface area is made up of two 'curvy triangles' and one 'curvy triangular tube'.
The area of the tube is easy enough once you've found the perimeter of the triangular shape.
The area of the triangle itself is a little harder.
I'd do it by first working out what its area would be if you cut off the left hand segment (ignoring the part to the left of line AC), then working out what it would be if you cut off both segments (making it a proper triangle).
By combining those two results in some way, you can find the area of the whole shape.
Edit: I've just done it and got ~8306, so maybe the book's wrong. (But I easily could be too. )
Much as I hate to say it, I think the American spellings are the more commonly used ones.
So it makes sense to have that as the default.