A Mandaree man who pleaded guilty to sexually abusing a child under an agreement with federal prosecutors was sentenced to 20 years in prison after a judge departed from a sentencing recommendation.