Application of the two-dimensional Newcomb problem to compute the stability matrix of external MHD modes in a tokamak