- #1

mryoussef2012

- 6

- 0

Please can someone help me convert this algorithm to a mathematical formula ?

function fun(int x)

{

int c = 0 ;

for(int i=2;i<floor(x/2);i++)

{

if(floor(x/i) > i-1)

for(int j=0;j<floor(x/i)-i+1;j++)

c++;

}

return c;

}

thanks