https://gateoverflow.in/188500/block-replacement-in-cache
Bro,plz have a look on this one.
Just small additional info: For all such kinds of questions, Size of ROM =
Size of 1 result * Number of all possible results
Here, same question but with multiplication https://gateoverflow.in/2725/gate1996-1-21
total entry=216*216=232
size of each entry is....Max(n,m) bits
therefor ...total size =232*16/8 =8Gbytes
considering carry:- 232 *17/8 =8.5 Gbytes