Let $ A $ be a $ 3 \times 3 $ matrix such that $ | \text{adj} (\text{adj} A) | = 81. $ If $ S = \left\{ n \in \mathbb{Z}: \left| \text{adj} (\text{adj} A) \right|^{\frac{(n - 1)^2}{2}} = |A|^{(3n^2 - 5n - 4)} \right\}, $ then the value of $ \sum_{n \in S} |A| (n^2 + n) $ is: