Calculating for small d
Calculating for small d