1 kilobyte =1024 bytes
1 megabyte =1024 kilobyte
Daarom is 512 kilobytes =512 x 1024 bytes =524.288 bytes.