first K digit of B^N