When using a simple encryption method in which the letters are replaced by the indexing numbers of the alphabet, there are multiple ways of decrypting them, ex. ABOR is 121518 but 121518 could also be AYEAH or LAER.
Well I need an algorithm to calculate how many possible ways there are for a given number to decrypt the message via the described method (ex 1225 has 5 - ABBE, AVE, ABY, LBE, LY ).
Help me if you want to.