title: horner's method of hashing
body: <p>I know how to get the value of hashing a string by horner's method wich takes a three paramettres <code>String str , int p (prime) and int</code> m like this </p>
  
  <pre><code>p(str)=( sumOf(str(0)+str(1)*M+....+str(n)*M^n) )%p = hashVal
  </code></pre>
  
  <p>but the problem is how to get the string str by giving just hashVal , p and M
  for example if I give you <code>hashval=7</code> , <code>p = 11</code> and <code>M = 2</code> you have to give me a string for example "hello" (not right just a suggestion for understanding)
  I mean that I don't know how to do the inverse 
  and thanks for your help</p>