only memoizing counts
excel solution to euler15