$N$ cows, numbered $1$ through $N$, each start with an integer $C_i$. Every round, all cows act simultaneously:
To keep the numbers from growing too large, every number is always kept modulo 98,765,431. After the round has been repeated exactly $T$ times, report the number held by each cow.
Constraints:
The table below shows the cows' numbers after each round for the example.
Cows' numbers
Round Cow1 Cow2 Cow3
0 1 0 4
1 4 5 1
2 6 5 9
3 14 15 11
4 26 25 29