Today I started to solve this task. Being clueless about any other ways I decided to use next steps:
1. Enumerate every connected drone
2. Create adjacency matrix based on tuple of connections.
3. Calculate sum of every power of adjacency matrix up to nodes count.
As far as I see, this is not the way author expected me to solve it.
Created at: 2015/03/03 12:19; Updated at: 2015/03/03 13:41