Formal solution in the problem of small divisors