By means of the partial fraction method, we investigate the decomposition of rational functions. Several striking identities on harmonic numbers and generalized Apéry numbers will be established, including the binomial-harmonic number identity associated with Beukers’ conjecture on Apéry numbers.