Summand
CodeChefOpen on judge ↗
An interesting topic in real analysis is convergence of series. E.g., consider the following summation The summation converges for all integer values of n≥2. For different values of n, find what the series converges to. Print the convergent sum as a fraction P/Q in it's lowest form, i.e., gcd(P,Q)=1. INPUT First line contains T, number of testcases. Each of the next T lines contain a single int
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