Assume you have a set of $n$ distinct elements. A single element can be placed in a group, and groups can be combined to form more groups. A group must contain at least one element to be valid, and cannot contain any element more than once.
Valid Groups
$(1)$
$(1\to2)$
$(3\to(1\to2))$
Invalid Groups
$(1\to1)$
$()$
When combining groups, the order of the elements does not matter.
$(1\to2) = (2\to1)$
However, each group is it's own distinct entity so the order of combinations does matter
$((1\to2)\to3) \ne ((1\to3)\to2)$
Under these rules, how many valid groups can be created from a set of $n$ elements? I know, calculating by hand that when $n = 1$ there is $1$ valid group, when $n = 2$ there are $3$ valid groups, when $n = 3$ there are $9$ valid groups, and when $n = 4$ there are $37$ valid groups.
Apologies if I'm using the notation and terminology incorrectly. I'm ignorant to whatever branch of mathematics this is.
(a -> b) -> (c -> (d -> e)). – Mike Earnest Jan 18 '22 at 01:16