When I run the attached code for the case n=11, it works: 22 interpolating functions are outputted. For the case n=12, NDSolve is unable to find any solutions. Can someone help figure out the cause of this error?