Recently, I have found this problem:
Find the number of $n$-tuples of integers $(\lambda_1,\cdots\lambda_n)$ with $n\neq1$, $\lambda_i\neq\lambda_k \;\forall i,k\leq n$ and $\lambda_i\neq1$ such that: $$\operatorname{lcm}(\lambda_1,\cdots,\lambda_n)=160$$
In order to solve this problem, I factor the number $160$ into: $160=2^5\cdot5$. Now, I list all possible divisors of $160$ without $1$: $$\mathcal{D}=\{2, 4, 5, 8, 10, 16, 20, 32, 40, 80, 160\}$$ The numbers $\lambda_i$ has to be in this set because, if not, the $\operatorname{lcm}(\lambda_1,\cdots,\lambda_n)$ can't be equal to $160$. There are also some sets for which the $\operatorname{lcm}(\lambda_1,\cdots,\lambda_n)$ is not $160$, for example $(2,20)$, so we have some possibilities.
If in a set there is $160$ then all possible other values for $\lambda_i$ are correct. If in a tuple there are the numbers $(32,5),(32,10),(32,20),(32,40),(32,80)$ then all other $\lambda_i$ are correct.
But how can we count all the $n$-tuples?
I think this problem is related with Bell's numbers because, for example, in order to find the number of tuples with $160$ we have to partitionate $\mathcal{D}-\{160\}$.
To get idea of how to build i will start from $n=2$:
As you said there are 5 possible couples which are $(32,5),(32,10),(32,20),(32,40),(32,80)$
Now let $n=3$
First of all we always need atleast $32$ in first element( i will arrange them after). At second element we need a $5,10,20,40$ or $80$. The third one can be anything in $\mathcal{D}-\{160\}$ but distinct from first two elements, so there are $9$ options. Finally we have $1.5.9.(3!)$ (3 stands for arranging) possible triples.
There are $1.5.9.8.(4!)$ possible quadruples and so on.
To generalize we can write:
$$\sum_{i=2}^{10} 5.P(8,i-2).i!$$