Minimum energy on trees with k pendent vertices