As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
CLIMBING THRU FL310 THE RT ENGINE PRODUCED A LOUD BANG ACCOMPANIED BY VIBRATIONS AND N1/N2 STARTED ROLLING BACK. WITH THE SMELL OF SMOKE IN COCKPIT THE CREW SHUTDOWN THE ENGINE. REMOVED & REPLACED RIGHT ENGINE WITH INSPECTED UNIT IAW H800XP AMM 71-00-01. LEAK & OPS CHECKS GOOD.