Function to sum of arr [ x ] + arr [ x + y ] + arr [ x + 2 * y ] + ... for all possible values of X and Y , where Y is less than or equal to sqrt ( N ) .
def precomputeExpressionForAllVal ( arr , N , dp ) : NEW_LINE