Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 2nd, 2013  |  syntax: None  |  size: 0.18 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. so let's say k is 140 and n is 256.
  2.  
  3. r = 0, s = 1 after (1).
  4. x = 139, r = 139 and s = 256 after (2)
  5. floor(s/k)*k = 1. 139 > 1 so r = 138, s = 116 after (3) and we go back to (2)
clone this paste RAW Paste Data