You are viewing a single comment's thread. Return to all comments →
as we know, sum of n odd numbers = n^2
for _ in range(int(input())): n = int(input()) print((n ** 2) % 1000000007)
Seems like cookies are disabled on this browser, please enable them to open this website
Summing the N series
You are viewing a single comment's thread. Return to all comments →
as we know, sum of n odd numbers = n^2