If the current different is twice the common difference then a number can be added midway from current and previous element
if ( diff == 2 * d ) : NEW_LINE INDENT numToAdd = arr [ i ] - d NEW_LINE DEDENT