Virtual address bits: log2(8 * 512) = 12 bits.
Physical address bits: log2(16 * 512) = 13 bits.
Binary physical address = 0 0110 1111 0001
The virtual address is 12 bits long, the first 3 bits to identify the pages, the last 9 bits
used as offset to identify bytes in the page.
The physical address is 13 bits long, the first 4 bits to identify the frames, the last 9 bits used as offset to identify bytes in frame.
Virtual address of page 4 corresponds to frame 3, so the physical address is
0011011110001.
So, physical address = 1777