Yet another sum
CodeChefOpen on judge ↗
Antonio, who is really fond of mathematical equations stumbled about one during his research. $$F(x)= \left(\frac{n^x}{n^x + \sqrt n}\right)$$ Now, Antonio is interested in finding the value of sum, where the sum is defined as $$n*\sum_{i=1}^{n-1} F(i/n)$$ Help Antonio in finding this value. Since the answer may be large, print it modulo 1000000007 ### Input - First line will contain $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