n = (ts/d)2 / ( 1 + (ts/d)2/N )