Transition temperature and a spatial dependence of the superconducting gap for multilayer high-temperature superconductors.