RSolve

WMA link


RSolve[eqna[n], n]

solves a recurrence equation for the function a[n].

Solve a difference equation:

No boundary conditions gives two general parameters:

Include one boundary condition:

Get a “pure function” solution for a with two boundary conditions: