The general harmonic-oscillator brackets: compact expression, symmetries, sums and Fortran code