There are 100 employees in an organization across five departments. The following table gives the department-wise distribution of average age, average basic pay and allowances. The gross pay of an employee is the sum of his/her basic pay and allowances.
| Department | Number of Employees | Average Age (Years) | Average Basic Pay (Rs.) | Allowances (% of Basic Pay) |
|---|---|---|---|---|
| HR | 5 | 45 | 5000 | 70 |
| Marketing | 30 | 35 | 6000 | 80 |
| Finance | 20 | 30 | 6500 | 60 |
| Business Development | 35 | 42 | 7500 | 75 |
| Maintenance | 10 | 35 | 5500 | 50 |
There are limited numbers of employees considered for transfer/promotion across departments. Whenever a person is transferred/promoted from a department of lower average age to a department of higher average age, he/she will get an additional allowance of 10% of basic pay over and above his/her current allowance. There will not be any change in pay structure if a person is transferred/promoted from a department with higher average age to a department with lower average age.
For any natural number $k$, let $a_k = 3^k$. The smallest natural number $m$ for which \[ (a_1)^1 \times (a_2)^2 \times \dots \times (a_{20})^{20} \;<\; a_{21} \times a_{22} \times \dots \times a_{20+m} \] is: