It is component size * components in one axis + 1.
so for example, for the 8192 resolution it is 254 * 32 + 1 = 8192
There may be other size combinations possible by using different numbers of quads per section and sections per component. The quickest way to try a bunch of values is to use the new landscape tool and try changing the values and see what it gives as a valid resolution.