I actually wrote a program to go through and find this number... since it was so huge, I spent the majority of my time optimising the code. Also, I ran into some precision problems since the answer of the order of magnitude of 1e+17. Cool problem.