AWS Migration

Given how terrible my internet connection has been of late, I decided to migrate my site over to Amazon Web Services (AWS) where it’s now hosted for free with a reliable connection.

SimplyStats Thanksgiving Puzzle

I owe a lot to Jeff Leek and Roger Peng for their great Coursera courses, in which I learned to program in R. They (along with Rafa Irizarry) run the Simply Statistics blog, which I highly reccomend. They posted a…Continue Reading →

adrianblp/taylor.swift · GitHub

Programmers are a funny bunch of people. Searching for ‘Swift’ inevitably leads to results for a certain pop singer. Someone’s decided that there needs to be at least one result going the other way. taylor.swift – Taylor series expansion in Swift…Continue Reading →

What are the odds?

So close

[ Trigger warning: this post contains maths. Please don’t be afraid, it probably won’t bite. ] After posting this photo of our lottery ticket to FacebookI thought more and more about random-event probabilities.

Project Euler Q5 :: Smallest multiple

Explanation. Standard caveat: don’t look here if you are trying to do these yourself. 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number…Continue Reading →

Project Euler Q4 :: Largest palindrome product

Explanation. Standard caveat: don’t look here if you are trying to do these yourself. A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the…Continue Reading →

Project Euler Q3 :: Largest prime factor

Explanation. Standard caveat: don’t look here if you are trying to do these yourself. The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? It seems so simple at…Continue Reading →

Project Euler Q2 :: Even Fibonacci numbers

Explanation. Standard caveat: don’t look here if you are trying to do these yourself. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:…Continue Reading →