[A (Somehow) Simple (Randomized) Algorithm for Frobenius Form of a Matrix - Codeforces](https://codeforces.com/blog/entry/124815) [No.3231 2×2行列相似判定 〜hard〜 - yukicoder](https://yukicoder.me/problems/no/3231)