User blog comment:Wythagoras/All my stuff/@comment-7484840-20130708083606/@comment-5529393-20140715222103

The algorithm is fairly obvious: You check X[n], X[n][n+1], X[n][n+1][n+2], ... until you find one that evaluates to 0.