Intractable problem

n =

Warning! It can take long time to finish