  We prove large and moderate deviation principles for the distribution of an
empirical mean conditioned by the value of the sum of discrete i.i.d. random
variables. Some applications for combinatoric problems are discussed.
