Li(p)-SERVICE? AN ALGORITHM FOR COMPUTING p