I see 9 comments complementing this solution, however this is not the correct or complete solution, since it is in terms of log(i). Now log(i) is any integer multiple of i. pi. The correct solution is (2n pi - i log 5) / (pi - i log 5) for all integers n.