title: How to calculate 2 positive numbers with follow formula
body: <p>I need to set the program so it ask for two positive numbers between 0 and 1023. The programm needs to calculate from how many steps can we get from number one  to number two (set by user) if we follow number calculate with following formula:</p>
  
  <p><strong>Xi+1 = (9Xi + 101) mod (%) 1024</strong></p>
  
  <p><em>I know that if we write 4 as number one and 6 as number two  the result is 722.</em></p>
  
  <p>I've been trying wit this for quite some time and I don't really know where I do wrong. </p>