Using dd to repeatedly erase a specific range of sectors on the hard disk

I recently needed to erase a specific range of sectors on a hard disk that had developed bad sectors. And I needed to erase them repeatedly, to make sure the remaining sectors in that area are stable.
This is were the dd tool comes in handy: dd if=/dev/zero of=/dev/sda seek=START count=SIZE bs=1M
For example…