Harmonic sums and integral representations