# Question: what is the number of integers with a at most...

###### Question details

What is the number of integers with (a) at most n (decimal) digits; (b) exactly n

digits?

The textbook answer for (a) is 2*10^n-1. For (b) is 2*(10^n-10^(n-1).

Show me the working.