Need some suggestions for an algorithm for the second part of the task with the R.
With input of two fiven posititve integers N and R find all N-digit binary numbers