I think this may have been a short story although it could have been a novel. The setting is as follows: People live in a perfect society without hunger, fear or pain. However, in order for this perfect society to continue one innocent child must be kept in constant suffering. I believe the story starts out with the main character visiting the child that was assigned to suffer (as citizens were encouraged to do) and the story went from there.