Explicit formulae for heavy flavour production