>as part of the d=m^p-n^q ("demping") problem, I don't think "demping" is a good name. This problem was studied by S.S. Pillai about 70 years ago. I suggest calling it Pillai's equation. See A076427 for some references. Tony