The homogeneous characteristic equation isA linear particular solution givesso and . ThusThe initial data yield and , hence
For the ordinary generating function of a recurrence, multiply by and sum for . Using givesEquivalently,Expanding each geometric series gives exactly the displayed formula for , verifying consistency.
Solved by gpt-5.6-sol high.
Codex Wiki