Play with function
CodeChefOpen on judge ↗
Chef is currently learning about function in mathematics and his teacher asks him to find the solution of a given problem. Given F(X) - F(X-1) - X2 = 2X+5 and F(0)=15 He has to find out F(N) where 1<=N<=1000. Your task is to help chef to solve this problem. Note: Since the answer can be very large, find the value modulo 10^9+7. ### Input - The first line of input contains a single integer T,
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start