A066099 features a nice visual generation pattern for compositions of $n$ (listing them in reverse lexical order):
From Omar E. Pol, Sep 03 2013:
----------------------------------- ----------
n j Diagram Composition j Row length
----------------------------------- ----------
. _
1 1 |_| 1; 1
. _ _
2 1 | _| 2, 1
2 2 |_|_| 1, 1; 2
. _ _ _
3 1 | _| 3, 1
3 2 | _|_| 2, 1, 2
3 3 | | _| 1, 2, 2
3 4 |_|_|_| 1, 1, 1; 3
. _ _ _ _
4 1 | _| 4, 1
4 2 | _|_| 3, 1, 2
4 3 | | _| 2, 2, 2
4 4 | _|_|_| 2, 1, 1, 3
4 5 | | _| 1, 3, 2
4 6 | | _|_| 1, 2, 1, 3
4 7 | | | _| 1, 1, 2, 3
4 8 |_|_|_|_| 1, 1, 1, 1; 4
.
So we would need that diagramm for $n = 700$ and only those
rows with $100$ summands and all summands from $\{1, \ldots, 10 \}$.
Pragmatic problem: There are $N = 2.63 \times 10^{210}$ compositions of $700$, according to WolframAlpha link.
Looking at the diagram one notices that $N(n)$ is resulting from the doubling (see step 3 of the algorithm below) and is thus simply
$N(n) = 2^{N-1}$ (A000225) and in this case: $N(700) = 2^{699}$.
About the recursion involved:
- The list of compositions for $n+1$ can be obtained, by using a copy of the list for $n$ first.
- Then we put a column of $1$ elements to the left of that list.
- Finally we put another copy of the list for $n$ on top, shifted one position left, aligning with the column of $1$ elements, and adding $1$ to each entry in the first column of the copy.
Side note: It is already interesting to see how the row lengths develop:
1
1 2
1 2 2 3
1 2 2 3 2 3 3 4
1 2 2 3 2 3 3 4 2 3 3 4 3 4 4 5
If we have $2^n$ terms, we find the next $2^n$ terms by copying the first $2^n$ terms plus $1$ each.
This leads to A063787 and is related to
A000120 (binary weight of $n$).
They are described as fractal sequences - deleting every other term gives the original series.