Simulating a Football Season This is a nice example of how statistics are used in modeling – similar techniques are used when gambling companies are creating odds or when computer game designers are making football manager games. We start with some statistics. The soccer stats site has the data we need from the 2018-19 season, […]

The Van Eck Sequence This is a nice sequence as discussed in the Numberphile video above. There are only 2 rules: If you have not seen the number in the sequence before, add a 0 to the sequence. If you have seen the number in the sequence before, count how long since you last […]

Computers can brute force a lot of simple mathematical problems, so I thought I’d try and write some code to solve some of them. In nearly all these cases there’s probably a more elegant way of coding the problem – but these all do the job! You can run all of these with a Python […]

Stacking cannonballs – solving maths with code Numberphile have recently done a video looking at the maths behind stacking cannonballs – so in this post I’ll look at the code needed to solve this problem. Triangular based pyramid. A triangular based pyramid would have: 1 ball on the top layer 1 + 3 balls on […]

Plotting the Mandelbrot Set The video above gives a fantastic account of how we can use technology to generate the Mandelbrot Set – one of the most impressive mathematical structures you can imagine. The Mandelbrot Set can be thought of as an infinitely large picture – which contains fractal patterns no matter how far you […]

What’s so special about 277777788888899? Numberphile have just done a nice video which combines mathematics and computer programing. The challenge is to choose any number (say 347) Then we do 3x4x7 = 84 next we do 8×4 = 32 next we do 3×2 = 6. And when we get to a single digit number then […]