Solution of some problems in decentralized detection by a large number of sensors