Solved problem 12 and added some utility sequences.