0 votes 0 votes Algorithms algorithms recurrence-relation + – rajishu07 asked Oct 1, 2023 rajishu07 315 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes O(n^2) mili_dhara answered Nov 7, 2023 • selected Apr 2 by rajishu07 mili_dhara comment Share Follow See all 3 Comments See all 3 3 Comments reply rajishu07 commented Nov 25, 2023 reply Follow Share How n + n + n + .........+ n is n^2 it should be n^n? 0 votes 0 votes mili_dhara commented Nov 26, 2023 reply Follow Share Let us say we take out n common then it would be n (1 + 1 + … n times) = n x n = n^2 (powers get added). Note: n * n * n * n …. n times = n^n. (if you multiply n, n times then it would be n^n. But above we have added). 0 votes 0 votes MrBananaMan commented 3 days ago reply Follow Share Can you recheck on this statement pls? with n>4.3 billion, that sum is approaching towards 2 and not 1. With big enough n, sum always reaches 2Also check if it shouldn't be $n+n+n+n...+n$, rather $n^{1 + 1/2 + 1/4 + 1/8 + ...}$ $\approx$ $n^2$ 0 votes 0 votes Please log in or register to add a comment.