6. (16%) Find the generating function for the following sequences:
E. (4%) Use the above result 6D to find a formula for k.