## 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?

[ 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 →

## Project Euler Q1 :: Multiples of 3 and 5

Explanation. Standard caveat: don’t look here if you are trying to do these yourself. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples…Continue Reading →

## Project Euler

As a means of honing my R programming skills, I’ve decided to tackle the Project Euler questions exclusively using my new favourite programming language. Besides, it seems that R can do just about everything; surely it can handle some programming…Continue Reading →

## Sunday Ride

Brrrraaaaaaaaapppp… Got a motorbike? Great, come on a Sunday ride with me (this Sunday, June 1st)! I’m a fair-weather rider, so if it’s really raining I’m calling it off. I’ve planned out a tentative route which you can view here;…Continue Reading →

## 300 Bottles of Beer on the Wall…

It’s known to some that I’ve been keeping a beer log for — I’m not exactly sure how long, maybe a couple of years. I wanted to know how many unique beers I was going through over time. I know…Continue Reading →