In the recent court case, a judge cited the city for contempt and ordered fine of $2 for first day. Each subsequent day, till the city followed judge's order, fine was squared (i.e., fine progressed as follows: $2, $4, $16, $256, $65536, ... ).
a. What would be fine on day N?
b. How many days would it take for fine to reach D dollars?