N-Queen Hard, method

Without OEIS/generating fuction, Is there more efficient implementation on this question?