Formal solution of the asteroid motion near the 2:1 commensurability