• + 0 comments

    Not mentioned in the problem is that C(N) must be !=0 mod 10^9+7. Otherwize recurrence will not depend on F(0) which can be any.