Math/EECS 1028: Discrete Math for Engineers

Problem of the day:


  1. March 05: This is a problem used in today's programming contest. See if you can solve it (no proofs are needed in the contest, but we need to prove our answer). [source]

    Problem: Snoopy has three coins. One day he tossed them on a table then and tried to flip some of them so that they had either all heads or all tails facing up. After several attempts, he found that regardless of the initial configuration of the coins, he could always achieve the goal by doing exactly two flips, under the condition that only one coin could be flipped each time and a coin could be flipped more than once. He also noticed that he could never succeed with less than two flips.

    Snoopy then wondered, if he had n coins, was there a minimum number x such that he could do exactly x flips to satisfy his requirements?
    Find the number x when it exists and prove that your answer is correct.

    Hint: For some n there are no solutions.

    Solution:

  2. March 11:
    I was not well, hence no problems until today.

    Problem: Prove that the set of all binary strings is countable. (This was sketched in class, but try to complete the proof).

    Solution:

  3. March 12:

    Problem: Consider the following alternate definition of an infinite set: "A set S is infinite if there exists a function f:S -> S that is one-to-one but not onto".
    Are the set of natural numbers and the set of real numbers infinite by this definition? Why?

    Solution:

  4. March 13:

    Problem: We proved in class that the real interval [0,1) is not countable. Argue that the interval [0,0.2) is uncountable.

    Solution:

  5. March 18:

    Problem: This is a challenge problem. Prove that for every natural number greater than 1, 2^(3n)-1 is not a prime. Solution: