Define S is a set {1,2,3,4...k}.
Define function
Define the cost of f(S) is the minimum call times of f() when you get it.
If we have called f(S) before , we can cost 0 to get f(S) directly after that.
Please calculate the cost of f(S) . (mod 109+7)