This video shows how to calculate the smallest value n to guarantee a certain error.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.