a(2) = 3 because there are two partitions of {1,2} and of the four possible pairs, only the pair ( {{1,2}}, {{1,2}} ) fails to have meet equal to {{1},{2}}.
MATHEMATICA
a[n_] := Sum[StirlingS1[n, k]*BellB[k]^2, {k, 0, n}]; Array[a, 20] (* Robert G. Wilson v, Jul 24 2018 *)
PROG
(PARI) /* From Vladeta Jovovic's formula: */
{Stirling1(n, k)=n!*polcoeff(binomial(x, n), k)}
{Bell(n)=n!*polcoeff(exp(exp(x+x*O(x^n))-1), n)}
{a(n)=sum(k=0, n, Stirling1(n, k)*Bell(k)^2)}
CROSSREFS
Cf. Bell numbers A000110. Also A007311 and Stirling numbers of the second kind, A000225.