  We give asymptotic sharp estimates for the cardinality of a set of residue
classes with the property that the representation function is bounded by a
prescribed number. We then use this to obtain an analogous result for sets of
integers, answering an old question of Simon Sidon.
