X = 20, i can equal 0-19.... but the equationa i need, will satisfy this..

Code:

Dec = "the inverse of" Enc.

i need a decryption algorithm for the above Enc variable. . . . . .

Nyizsa

By decryption, do you mean getting back the original i, A[i] and X values, given Enc as a number?
I think it's impossible, since the inverse of the modulus operation is indeterminable. (There are infinite numbers which give the same modulus of 59.)