← All problemsSign in

Sum of Coefficients

The Problem is pretty simple and straight forward. Calculate the sum of coefficients of (x+y)^n Input First line will contain the number of Test Cases T( 0 Output For each Test Case print single line having the sum of coefficients. If result exceed 1000000007 take mod with the result. Example Input: 5 10 20 30 40 50 Output: 1024 1048576 73741817 511620083 898961331

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start