OFFSET
1,2
LINKS
FORMULA
a(n) = 2 * Sum_{0<k<n} max{a(k), a(n-k)} starting with a(1)=1.
a(n) ~ 0.054816154756...*5^n.
EXAMPLE
a(3) = 8 since with an initial strip of three stamps there are two possible folding positions for the initial fold, each of which could be folded up or down, so there are four possible initial folds, each leaving one possible folding position which can be folded up or down, making eight possible folding patterns.
MAPLE
a:= proc(n) option remember; `if`(n=1, 1,
2*add(max(a(k), a(n-k)), k=1..n-1))
end:
seq(a(n), n=1..25); # Alois P. Heinz, Jan 08 2023
MATHEMATICA
a[n_] := a[n] = If[n==1, 1, 2*Sum[Max[a[k], a[n-k]], {k, 1, n-1}]];
Table[a[n], {n, 1, 25}] (* Jean-François Alcover, Jan 10 2023, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Sep 16 2005
STATUS
approved