Equation showing step 3: calculating the religious diversity index