An alternative to the explicit formula and some applications