Sum[DirichletCharacter[5, 1, i] PowerMod[i, -2, 5], {i, 1, 5}]