Virtual Memory & Paging

Answer & solution
Official answer: 36
An8 KiB page uses 13 offset bits. A physical frame number needs 32−13=19 bits, and the five status/permission bits make a 24-bit (3-byte) packed PTE. A24 MiB table then holds 223 entries, giving 23+13=36 virtual address bits. This assumes the entries are packed into 3 bytes rather than padded and the maximum table maps the full virtual page space.
An8KiB page needs 13 offset bits. From 32 physical bits, 19 remain for the physical frame number. Add 1 valid+1 dirty+3 permission bits to obtain 24 bits=3 bytes per packed entry. A24MiB table holds 24×220/3=8×220=223 entries, one per virtual page. Therefore the virtual address has 23 page-number bits plus 13 offset bits=36. Alignment that padded entries to 4 bytes would define a different organization, so packing is an explicit assumption.