Redirecting asteroids on an impact course by momentum transfer

I think this is a reasonable analysis. Obviously this is a bad case scenario. My main point was really that each nuke you set off is getting you more push per kilogram of payload mass. Also, I had implicitly assumed you were going to spend the propellant to brake, but your idea is better - just fly by and set off the nuclear shaped charge at the right nanosecond. And yeah, you would have to pick the patch you set it off next to carefully, apparently the material type matters.