Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:27:25+00:00 2026-06-05T01:27:25+00:00

I am trying to understand how to solve recurrence relations. I understand it to

  • 0

I am trying to understand how to solve recurrence relations. I understand it to the point where we have to simplify.

T(N) = T(N-1) + N-1              Initial condition: T(1)=O(1)=1
T(N) = T(N-1) + N-1
T(N-1) = T(N-2) + N-2
T(N-2) = T(N-3) + N-3
……
T(2) = T(1) + 1


**Summing up right and left sides**

T(N) + T(N-1) + T(N-2) + T(N-3) + …. T(3) + T(2) =

= T(N-1) + T(N-2) + T(N-3) + …. T(3) + T(2) + T(1) +

(N-1) + (N-2) + (N-3) + …. +3 + 2 + 1


** Canceling like terms and simplifying **

T(N) = T(1) + N*(N-1)/2 1 + N*(N - 1)/2

T(N) = 1 + N*(N - 1)/2

I really don’t understand the last part. I understand canceling like terms but don’t understand how the simplification below works:

T(N) = T(1) + (N-1) + (N-2) + (N-3) + …. +3 + 2 + 1
T(N) = T(1) + N*(N-1)/2 1 + N*(N - 1)/2

How is the second line derived from the first? Doesn’t make any sense to me.

Would be a great help if someone can help me understand this. Thanks =)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:27:27+00:00Added an answer on June 5, 2026 at 1:27 am

    In your second-to-last-line:

     S = (N-1) + (N-2) + (N-3) + ... + 3 + 2 + 1
    

    You can say:

    2S = S + S
       = (N-1) + (N-2) + (N-3) + ... +   3   +   2   +   1
           1   +   2   +   3   + ... + (N-3) + (N-2) + (N-1)
       =   N   +   N   +   N   + ... +   N   +   N   +   N
           |__________________ N-1 times ________________|
    

    You’re counting from N - 1 to 1, so there are N - 1 terms in the sequence. But the whole sequence is just N so you can say:

    2S = N * (N - 1)
     S = (N * (N - 1)) / 2
    

    So in your last chunk:

    T(N) = T(1) + (N-1) + (N-2) + (N-3) + ... + 3 + 2 + 1
         = T(1) + (N * (N - 1)) / 2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to understand and solve this problem for the last three
I'm trying to understand if a DHT can be used to solve a problem
I'm new to git and I'm trying to understand if it can solve my
I'm trying to understand how to solve this trivial problem in C, in the
I am trying to solve a homework problem where I have to return a
I am trying to solve one problem from Liang's book I have done most
I have been trying to solve this problem all day, I googled a lot,
I don't understand anything about IIS, but am trying to solve this problem of
I understand there are many threads like mine but I have been trying to
I am trying to understand if I really have any case for using git/mercurial.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.