When I was doing class group computations for number fields $K:\mathbb{Q}$, I realised that the cyclic group comes up a lot. I was thinking about the following question:
Suppose we have a $n$ fixed, is there an algorithm that can be used to find a number field $K$ such that the class group, $Cl(K)$ is isomorphic to $C_n$, the cyclic group of order $n$?
I thought about this but I couldn't really prove this or disprove with a counter argument. Also I saw that there is a generalisation called the Cohen-Lenstra heuristics, however I was wondering since I am only considering a special case of this, would my question becomes easier to solve?
Many thanks in advance!