Whole blocks and encrypted storage limits

A school uses a storage system with exactly 200,000 bytes available for encrypted files. Its implementation divides each input file into data blocks of at most 4096 bytes. It fills any unused space in the last block with extra bytes, then encrypts each full block and stores 32 additional bytes of accompanying information per block. Thus every stored encrypted block occupies 4128 bytes.


Blocks from different files cannot share space. Ignore directory entries and all other storage costs.


One stored encrypted block contains a 4096-byte data field and 32 bytes of overhead.


Find both answers as exact integers:

  • The maximum number of encrypted copies that fit when each input file contains 12,100 bytes.
  • The greatest input file size, in bytes, that allows 18 encrypted copies of that file to fit in the same storage space.
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Sampling, Compression & Encryption Questions: