Alphanumerics

send
The above is probably the most famous example of an alphametric.

A cryptarithm is a type of mathematical puzzle in which the digits in numerical calculations are replaced by letters of the alphabet.

Alphametics are cryptarithms in which letters form meaningful words, often in meaningful phrases. There are only a few simple rules for these puzzles:

1. The same letter always stands for the same digit, and the same digit is always represented by the same letter. So if a P stands for a 2, every P in the puzzle is a 2. If a 3 is represented by a K, every 3 in the puzzle will be a K.

2.The digit zero is not allowed to appear as the left-most digit in any of the numbers in the puzzle. For example, if the word FOOD represents an addend in a puzzle, the F may not be a zero.

3.Most alphametics have unique solutions (there is only one possible answer).

Here are a few easier alphametrics to try to solve. You need to find which letter each number represents. A good place to start in the first one is the F of FOOL, as there is only one number it can possibly be:
alphanumerics
Here is an extensive list to try from Bielefeld University.
You can even make up your own ones here!
For example
FlemingGoodman
But there is no guarantee that they will be easy or fun to solve! It may take a lot of brute force.
Finally this is a puzzle from Nrich about an alphanumeric that doesn’t have a unique solution:
kids

Well done on the first challenge

Thank you everyone for your excellent contributions. Well done trying by hand and I hope some of you had a look at trying different numbers on the geogebra applet here.

It seems like finding a long sequence really is a challenge no matter what numbers you use.

However ….

It is technically possible to choose four numbers that make an infinite sequence where you never end up at 0,0,0,0. The solution is very tricky to work with though and using a computer doesn’t even help because computers round numbers to a certain number of decimal places which messes up the result.

For an explanation and how to get to the solution have a look at this blog.

The next official challenge will be launched on Wednesday 19th of April … please enjoy the other puzzles on this site in the meantime.

Estimating Pi for Pi Day!

circle dartboard

As it was Pi Day on Tuesday (14th of March is 3.14 in American style date!) we thought we would try and estimate the value of Pi by simulating throwing darts randomly at a square dartboard like below and seeing how many land inside the circle.

One way to do this is to generate a random point by typing the following in the input bar.

(RandomUniform[-1, 1], RandomUniform[-1, 1])

This will generate a point with x coordinate inbetween -1 and 1 and y coordinate inbetween -1 and 1.

Then right click on the point and select “Trace On”.

In the View menu there is a command called “Recompute All Objects”. The shortcut for this is to hold down Ctrl and press R.

You should see your random point going to different places in the screen. You can do this say 80 times.

Alternatively, you can create 80 points on a spreadsheet with the Random Uniform command and then “Create List of Points”. See here for a working applet with this method.

Either way you can now estimate the value of Pi!!!

Count the number of points inside the circle
Divide this by 80 to get the proportion of points that are inside the circle.
Area of the circle is π * 1² = π
Area of square is 2*2=4
So this proportion should be π/4.
So if we multiply our proportion by 4 we get an estimate for π.

The more points you use the better the estimate will be.

Good luck, and happy Pi Day!

Collatz conjecture

collatz

Think of an positive integer.

If it is equal to 1, stop.

If it is even, divide it by 2.

If it is odd, multiply it by 3 and add 1.

With the new number you get, repeat the instructions above.

If you picked the number 6, your sequence would look like this:

3, 10, 5, 16, 8, 4, 2, 1

Did your sequence end up at 1? Mathematicians have guessed (hypothesised) that all starting choices will eventually end up at 1, but no one has been able to prove this. If you can find just one example that disproves this theory then you could claim a prize of 120 million Japenese YenHere is a fun example of a counterexample that took a long time to find.

Try a few starting numbers by hand. Then you could try and use the power of a spreadsheet such as Geogebra, or by writing some code on Python and let the computer do the hard work for you!

Open up Geogebra.

You will need to use the Mod  command:

Mod[ <Dividend Number>, <Divisor Number> ]

to check if the number is even.

and the If command:

If[ <Condition>, <Then>, <Else> ]

to choose what to do if it is even and what to do if it is odd.

Put together, here is the formula you should put into cell A2, once you have put a starting number in A1.

=If[Mod[A1, 2] == 0, A1 / 2, A1*3 + 1]

Then just hover your mouse pointer in the bottom right corner and click the left button and hold down and drag down lots of cells. You should see the sequence appear.

If you want to be super clever you could try and combine two If statements so that if the cell was equal to 1 it would stop calculating and just say “STOP”.

You could also try this activity on Python, click on the menu bar on the top left to make it full screen.

Good luck!

First challenge – squares in squares puzzle

Deadline – 22nd of March!

Draw a square and choose four numbers to put at each vertex. For example:

diffy1

Now in the middle of each segment write the positive difference between the two numbers at each end. e.g. the difference between 5 and 6 is 1.

diffy3

Join these new points up with a square

diffy4

Now in the middle of each segment of the new square find the positive difference of the numbers at each end. For example the difference between 15 and 1 is 14. Do this for all the segments and draw another square joining up your four new answers.

diffy5

Keep finding the positive differences and joining these points up into a square until you reach 0,0,0,0.

diffy6

Choose four new starting numbers and follow the instructions above to create your own version of this.

Our first choice of four starting numbers meant drawing 4 squares before we reached 0,0,0,0. How many squares have you drawn with your choice of starting numbers?

Your challenge is now to find the longest sequence of squares you can before the sequence reaches 0,0,0,0 and send us your answer.

An easy way to send sequences would be as lists of numbers. For example the one above could be written as

diffy7

Please write giving us your longest sequence and any other thoughts on the puzzle using the “Leave a comment” button below.