On April 12th, the 47th known Mersenne prime, 242,643,801-1, a 12,837,064 digit number was found by Odd Magnar Strindmo from Melhus, Norway! This prime is the second largest known prime number, a "mere" 141,125 digits smaller than the Mersenne prime found last August.
Click here for more information.
Monday, June 15, 2009
Wednesday, June 03, 2009
Best Visual Illusion of the Year Contest
The Best Visual illusion of the Year Contest is a celebration of the ingenuity and creativity of the world’s premier visual illusion research community. Contestants from all around the world have submitted novel visual illusions (unpublished, or published no earlier than 2008), and an international panel of judges has rated them and narrowed them to the TOP TEN.
Sunday, March 29, 2009
Saturday, February 28, 2009
Quite Basic -- Sieve of Eratosthenes
A BASIC programming website that uses the Sieve of Eratosthenes as an example.
Tuesday, February 24, 2009
Number Puzzles
Found some great number puzzles on the Internet.
Bridges
Dominosa
Light-up
Loop
Nonograms
Nurikabe
Shikaku
Sudoku
Bridges
Dominosa
Light-up
Loop
Nonograms
Nurikabe
Shikaku
Sudoku
Sunday, January 25, 2009
Monday, January 05, 2009
Security Codes
I was entering the four-digit security code to our house, and I realized that it doesn't end with an ENTER (E) key to accept it. The problem with that is you can keep pressing numbers until the right combination is found. Since most keypads use all ten digits (0-9), the total number of combinations should be $10^n$. However, it is the ENTER key that makes it so difficult.
Let D equal the number of digits for the security code. Let K equal the number of digits on the keypad.
For a binary keypad (0, 1) and a three-digit code, our set consists of (000E, 001E, 010E, 011E, 100E, 101E, 110E, 111E). Thus, we have at most $2^3 \times (3+1)$ possible keys to enter, where the plus one is for the ENTER key. Generally speaking, we'd have $K^D \times (D+1)$ possible keys to enter.
Without the ENTER key, we could keep pressing the keypad until all combinations have formed. The minimum number of keys required would be $K^D + D$.
So for a binary keypad, we'd have:
Thus, one only needs to know the string concatenations to be able to guess the right combination if no ENTER or code-stopper key is required.
Let D equal the number of digits for the security code. Let K equal the number of digits on the keypad.
For a binary keypad (0, 1) and a three-digit code, our set consists of (000E, 001E, 010E, 011E, 100E, 101E, 110E, 111E). Thus, we have at most $2^3 \times (3+1)$ possible keys to enter, where the plus one is for the ENTER key. Generally speaking, we'd have $K^D \times (D+1)$ possible keys to enter.
Without the ENTER key, we could keep pressing the keypad until all combinations have formed. The minimum number of keys required would be $K^D + D$.
So for a binary keypad, we'd have:
| D | String | Keys (wo/ E) | Keys (w/ E) |
|---|---|---|---|
| 1 | 01 | 2 | 4 |
| 2 | 00110 | 5 | 12 |
| 3 | 0001110100 | 10 | 32 |
| 4 | 0000111100101101000 | 19 | 80 |
| 5 | 000001111100010010101110110011010000 | 36 | 192 |
Thus, one only needs to know the string concatenations to be able to guess the right combination if no ENTER or code-stopper key is required.
Labels:
codes,
combination,
My Math
Subscribe to:
Posts (Atom)

