How to get the closed form of this recurrence?

AI Thread Summary
The discussion revolves around finding a closed form for the recurrence relation T(k, n) = T(k, n-1) + (k-2)(n-1) + 1, derived from a polygon word problem. The user attempts to identify a pattern through repeated substitutions, noting the emerging sequence related to the number of substitutions. They express uncertainty about how to represent the sequence of triangular numbers (1, 3, 6, 10) and seek clarification on the boundary condition. Ultimately, the user believes they have arrived at a solution for T(k, n) in terms of n and a constant c, indicating progress in their understanding of the problem. The discussion highlights the challenges of deriving closed forms from recurrence relations.
zeion
Messages
455
Reaction score
1

Homework Statement



Hello,

This expression was derived from a polygon word problem and I need to find a closed form for it with repeated substitution (I think).

T(k, n) = T(k, n-1) + (k-2)(n-1) + 1

Homework Equations


The Attempt at a Solution



Get a pattern like:

= T(k, n-2) + (k - 2)(2n - 3) - 2 subs.
= T(k, n-3) + (k - 2)(3n - 6) - 3 subs.
= T(k, n-4) + (k - 2)(4n - 10) -4 subs.
.
.
.

I'm not sure how to express the 1, 3, 6, 10 sequence in terms of number of substitutions.
 
Physics news on Phys.org
What is the boundary coundition?
This is what I got so far.
Assuming T(k, 0) = c

T(k,n) = n+c+(k-2)*1*2*...(n-1)
 
Sorry I wrote the expression wrong; but I got the answer I think, thanks.
 
Back
Top