Is there a way to calculate the starting point of a for loop and the adjustments to it. The original loop has these conditions
for( int gap = a.length / 2; g
for( int gap = 1; gap < ((a.length + 2)/3); gap = (((((gap *2)+1)*3)-1)/2))