On the Subject of Piragua
Hey pana, I run this town!
 This module contains a cup of unflavored piragua, and a bottle of syrup. To solve the module, pick the correct flavor. Pressing the bottle changes the flavor in it, which can be identified by the color of the syrup, and pressing the piragua submits.
 Follow the instructions below to calculate two numbers, A and B. These will provide a final solution digit which corresponds to the correct flavor.
 If A and B are coprime, the final digit is the digital root of the sum of A and B.
 If A and B are not coprime, the final digit is their greatest common denominator, modulo 10.
 Every time a Piragua module solves, the final digit to every other Piragua on the bomb increments by one (modulo 10 if necessary).
Calculating number A:

Concatenate the following numbers to create one bigger number:
 Number of batteries
 Number of ports
 Number of indicators
 Number of modules (including needies)
 Starting time in minutes
 Go through the number and remove any digit that has already occured.
 Multiply the resulting number by the number of battery holders times the number of port plates, plus 1.
 This product modulo 10,000 is number A.
Calculating number B:
 Calculate 4 digits using the following instructions.
 The first digit is the number of modules on the bomb containing “arrow”, “identification”, or “simon”.
 The second digit is the day of the week on which the bomb was started, with Sunday being 1.