Project Euler 330

http://projecteuler.net/index.php?section=problems&id=330


eってEulerのeなんだっけ?
とりあえずa(10)を出してみよう。
やっとa(10)出た。でも、この先どうやっていけばいいのか