Jump to content
BrainDen.com - Brain Teasers


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by BMAD

  1. BMAD

    HTML help

    I am attempting to develop a website for a university project where I am supposed to create a quiz that stores the users name and answers then decides if the answers are sufficient for mastery. If the student does well enough then a 'certificate' is printed to the screen for the user to print out their recognition. If they do not then it reports back their answers so that the student knows to go back and study. The problem is, is that we are supposed to build this website in google sites. i have little qualms with google sites for the project is almost complete except for the fact that google sites and javascript do not seem to get a long to well; which i believe is the key to solving the quiz problem i am having. Every time i attempt to enter javascript into the html editor on the site i get an error and find that the google site edited my code pretty incredibly. However, HTML seems to have little issue with editing the site. Is there a way to build my quiz in html to meet my above requirements? if not or if this isn't efficient does any one have any ideas as to how i could make my quiz according to the specs? The quiz needs to be 20 questions. So i am currently, and painstakingly so, making a giant tree like web to cover all the combination outcomes but clearly this is quite extensive and exhaustive. So any help would be appreciated.
  2. BMAD

    Poisonous apples

    There are two bowls that you and a challenger must eat from. After flipping a coin you were selected to pick the bowl that each would eat from. In the first bowl there are three out of five poisonous apples. In the second bowl, there are two out of five poisonous apples. Whoever eats from the first bowl must eat two apples at random from the bowl. Whoever eats from the second bowl must eat three random apples from the second bowl. Which bowl should you pick to eat?
  3. Dr.Will wants to operate for three different persons who were wounded. But he had only two surgical gloves. There is no allowed blood contact between the three persons. How can Dr.Will operate for the three people with two pair of surgical gloves?
  4. BMAD

    Square in a circle

    Suppose i have a circle. I cut off its arcs such that it became the biggest possible square i could make from that circle. What's the ratio of the edge of the circle to the middle of the edge of the square (assume minimum length) to the radius of the circle.
  5. BMAD

    Square in a circle

    Maybe one of you answered this question: :) I should have included this pic though...
  6. Alice and Bob are playing the following game: Alice has a secret polynomial P(x) = a_0 + a_1 x + a_2 x^2 + … + a_n x^n, with non-negative integer coefficients a_0, a_1, …, a_n. At each turn, Bob picks an integer k and Alice tells Bob the value of P(k). Find, as a function of the degree n, the minimum number of turns Bob needs to completely determine Alice’s polynomial P(x).
  7. Imagine you have several distinguishable rows composed of several distinguishable columns The intersection of the rows and columns either have a 1 or a 0. Each row sums to the same value and the question is how many of the columns can you eliminate assuming the the 1's in each row are randomly distributed across the columns Example, there are 30 rows and 20 columns with each row containing 7 randomly dispersed 1's. How many columns can be eliminated reducing the total in each row by no more than 2.
  8. BMAD

    the distinguished matrix

    No they just need to be distinguishable.
  9. BMAD

    Poisonous apples

    I meant them to be fractions so five in each
  10. BMAD

    Mining Gold

    Mining gold in a particular region is hard work. The metal only appears in 1% of rocks in the mine. But your friend Old Joe created a detector he’s been perfecting for months and it is finally ready. To your astonishment it always detect gold if gold is present. Otherwise it will have a 90% accuracy rate in detecting that a particular rock does not have gold. Working with Old Joe, You guys scan a large rock and determine that it gives a positive result. In loading it up, Old Joe realizes that both of you can't fit into the vehicle. He offers to sell his share to you for $200. You know that a rock of gold that size is worth easily $1000. Is that a fair price? Assume the vehicle remains with the proper owner.
  11. Imagine a piece of plywood with an array of evenly spaced nails forming small squares and consider that each square has side lengths of 1 unit. A simple closed shape is formed with a rubber band. If you knew the number of nails used in the perimeter and the perimeter itself, how could you predict how many squares can be counted inside this rubber band shape? for example say the rubber band shape is outlining these nails: * - * - * - * - * | / * * * * | / * - * - * Perimeter = 8 + 2*sqrt(2) Nails = 12 Squares: 6 squares (5 - 1x1 and 1 - 2x2) --- the result of 6, at a minimum, is what we are trying to predict.
  12. BMAD

    Squares on a plywood

    If I am not mistaken, you found a way to calculate the area every time; which is wonderful, However, I wanted to know if it could be extended to know the amount of nxn squares that were defined within the shape not the precise area.
  13. BMAD

    Squares on a plywood

    nails are 12 perimeter are the side lengths, 8+sqrt(2) Forgive my english, i think i see the confusion. When I say the number of nails in the perimeter what I am really trying to say is the number of nails throughout the shape.
  14. BMAD

    Squares on a plywood

    Hmmm, I only considered convex figures when making this problem. Let us first solve the simple case (only convex) then we could consider the more complex case with the relaxed condition.
  15. Assume we have a circle and a rectangle. The circumference of the circle is the same as the perimeter of the rectangle and the areas of each shape is also the same. Write the ratio of the circle's circumference to the diagonal of the rectangle as a function in terms of the width of the rectangle.
  16. excellent work as always bonanova but should
  17. BMAD

    Two boys

    ah, thank you.
  18. BMAD

    Two boys

    Alas, English.... But I am confused. From your interviewing you know for a fact that this family has A boy. So regardless of their birth order all we don't know is the probability that the other child is a boy. And the other child could be a boy or girl, so I still believe it is 1/2.
  19. BMAD

    Two boys

    If it is given that they already have one boy then... I get 1/2. Since the second child could either be a boy or a girl. Note: The spoiler buttons seems to be missing on mobile again.
  20. Find the limit of x^(x/2)^(x/4)^(x/8)^(x/16)^(x/32).... (a) as x goes to infinity (b) as x goes to zero
  21. BMAD

    a^b x c^a = abca

    I hope there is a nuanced way of solving this besides brute force.
  22. BMAD

    Limit of a shrinking function

    The first case
  23. BMAD

    Balancing weights

    but if you place 3,4 on one side it would not be balanced.