Fix an integer $n \geq 1$. Suppose that $a_n$ denotes the number of subgraphs in $P_n$. Here $P_n$ denotes the graph with vertices $\{1,2, \dots,n-1, n\}$ and edges $\{j,j+1\}$, for all $1 \leq j \leq n-1$.
Could you please, prove, or give a hint, for the recurrence $$a_n = a_{n-1}+\sum_{0 \leq i \leq n-1}a_i.$$ Here we assume that $a_0 = 1$ (there is 1 empty graph).
Do you know a reference containing this, and similar, results?
Thank you in advance.
It seems to me that it is possible to reason like this. Denote by $G(k)$ the induced subgraph of $P_n$ with vertices $x_k,x_{k+1}\ldots,x_n$. It is clear that $G(k)$ is a simple path. If $H$ is a subgraph of the graph $P_{k}$, then $H+G(k+1)$ is the disjoint union of graphs $H$ and $G(k+1)$.
The set of all subgraphs of graph $P_n$ is the disjunct union of the following sets:
Hence our recurrence formula follows.