Project Euler #191: Prize Strings

  • + 0 comments

    I am having trouble solving this problem. The approach I came up with for finding f is calculating the total possible permutations of the numbers 0 through (c-1) and then subtracting all the permutations that do not meet the criteria (over n zeros/m consecutive ones).

    Am I on the right track or is there a better way to go about it? Also, are there any concepts that I could study that would help me solve this problem?