The solution of a generalized inverse birthday problem - P. A. Endovitskij (Reports of the National Academy of Sciences of Ukraine, 2012)