FactorInteger[1189]

41*29

\(\(
PowerMod[13, \(-1\), 40*28]\)\)

Mod[13^(EulerPhi[40*28] - 1), 40*28]

Mod[13*517, 28*40]

Mod[419^517, 1189]