An algorithm for computing {2, 3}, {2, 4}, {1, 2, 3}, {1, 2, 4}-inverses and the Moore-Penrose inverse of a given rational matrix A is established. Classes A{2, 3}s and A{2, 4}s are characterized in terms of matrix products (R∗A)†R∗ and T ∗(AT ∗)†, where R and T are rational matrices with appropriate dimensions and corresponding rank. The proposed algorithm is based on these general representat...