Sanhedrin 97-1: The Prohibition to Calculate the Keitz

And why many Rishonim and Achronim did calculate it.