
$N = [ \log x/ \log d ]$
