Puzzles
I enjoy some fun math problems and puzzles from time to time! I like to solve them, I like to create them, and I like to code them! This is just a little collection of some of my favorites! Enjoy and have some fun!
Fill in the numbers 1-9 in the nine white squares. The goal is to get the sum of the numbers horizontally, vertically and diagonally to be 15. Remember that each number could only be used once.
This is my step by step guide to use my algorithms for solving the Rubick’s Cube. This is my rough draft, so all feedback is welcome!

You have a total of nine coins and a balance scale (As illustrated above). One of the coins is a counterfeit, which differs from the real coins because it is slightly heavier. Prove that you can find the counterfeit with only two rounds of weighing.
[click here for solution!]

After a round of weighing, you have three possible outcomes as illustrated above (state one, state two, and state three).
First weighing:
Choose to weight coins 1, 2, 3 against coins 4, 5, 6. Leave 7, 8, and 9 aside.
Results:
-If state one, then you know the counterfeit is either 4, 5 or 6.
-If state two, then you know the counterfeit is either 1, 2 or 3.
-If state three, then you know the counterfeit is either 7, 8 or 9.
Second weighing:
Weigh the first and second coin in the set (either 1 and 2, 4 and 5, or 7 and 8 depending on results of first weighing). Leave the third coin aside.
Results:
-If state one, then the counterfeit is the right coin (either 2, 5 or 8 depending on results of first weighing).
-If state two, then the counterfeit is the left coin (either 1, 4 or 7 depending on results of first weighing).
-If state three, then the counterfeit is the coin that wasn’t weighed (either 3, 6 or 8 depending on results of first weighing).
[click to close]