Seems my solution is correct. This is the approach i am using,

in case of base 10,

There are 20 threes within hundred. Hence within thousand there are 200+100 threes present[This 100 is for hundred place].

i.e 3 *10*10 is the result.

Hence for base 8 substitute 10 with 8,

3 *8*8 = 192.

Though this is not very short method, i prefer doing my calc in base 10.

## Bookmarks