Let $a_n = 3^n +7^n$ for $n \in \mathbb{N}_0$
How can one calculate the generating function of the sequence $(a_n)_{n\in \mathbb{N}}$?
Is that correct? If yes, how can one find that out?
In our Script $A(x) = \sum_{n=0}^{\infty} a_nx^n$ is a Power series and the generating function of the sequence $(a_n)_{n\in \mathbb{N}}$.
Equality, sum and product of two formal power series are defined as follows:
Can someone also tell me how one can calculate the exponential generating function:
$$A(x) = \sum_{n=0}^{\infty}\frac{a_n}{n!}x^n$$
For example, if $F(x) = \sum_{n=0}^{\infty} f_nx^n$ is the generating function of Fibonacci numbers, then $F(x) = \frac{x}{1-x-x^2}$ and
$$f_n = \frac{1}{\sqrt5} ((\frac{1+\sqrt5}{2})^n - (\frac{1-\sqrt5}{2})^n)$$

Wolfram Alpha gave an expression for $a_n$, but you want $\sum_{n\ge 0}a_n x^n$, which is a sum of two geometric series. For $|x|<\frac{1}{7}$, it converges to $\frac{1}{1-3x}+\frac{1}{1-7x}$.