Question: Mathias Hansen House, was built in 1616, she was a member of the city council, and later served as mayor of Copenhagen, his daughter was Kirsten Madsdatter, mother of Christian Ulrik Gyldenløve, and a mistress, of which royalty of Denmark?

Context paragraphs:
Vibeke Kruse: Vibeke Kruse (died 1648) was the official mistress of King Christian IV of Denmark between 1629 and 1648 and the mother of one of his three acknowledged, illegitimate sons, Ulrik Christian Gyldenløve.  She was described as influential.

Moltke's Mansion: The Moltke's Mansion is a town mansion on the corner of Bredgade and Dronningens Tværgade in Copenhagen, Denmark.  It is one of several town mansions in Frederiksstaden, although it actually predates the neighbourhood by half a century.  It was built for Ulrik Frederik Gyldenløve between 1700 and 1702 and was originally known as Gyldenløve's Little Mansion (in contrast to his larger mansion, now known as Charlottenborg Palace, at Kongens Nytorv).  It received its current name in 1842, after it was acquired by Adam Wilhelm Moltke, the first Danish Prime Minister under the Danish constitutional monarchy.

Christian IV of Denmark: Christian IV (Danish: "Christian den Fjerde" ; 12 April 1577 – 28 February 1648), sometimes colloquially referred to as Christian Firtal in Denmark and Christian Kvart or Quart in Norway, was king of Denmark-Norway and Duke of Holstein and Schleswig from 1588 to 1648.  His 59-year reign is the longest of Danish monarchs, and of Scandinavian monarchies.

Hans Ulrik Gyldenløve: Hans Ulrik Gyldenløve (10 March 1615 – 31 January 1645) was the illegitimate son of King Christian IV of Denmark and his mistress, Karen Andersdatter.  He was also a Danish Navy officer and "lensmann" bailiff.

Ulrik Christian Gyldenløve (general): Ulrik Christian Gyldenløve (7 April 1630 – 11 December 1658) was an illegitimate child of Christian IV of Denmark and his chambermaid and mistress Vibeke Kruse.

Mathias Hansen House: The house was built in 1616 for Mathias Hansen, who was a member of the city council and later served as mayor of Copenhagen from 1622 until his death in 1626.  Hansen's daughter was Kirsten Madsdatter, who was one of Christian IV's mistresses and mother of Christian Ulrik Gyldenløve.  Later residents include the composer Emil Hartmann , who lived there first in 1846 and again in 1852.

Christian Ulrik Gyldenløve: Christian Ulrik Gyldenløve (3 February 1611 - 6 October 1640) was a Danish diplomat and military officer.  He was one of three acknowledged illegitimate sons of Christian IV of Denmark— the only one by Kirsten Madsdatter.  He died in a fight with troops from the Netherlands at the churchyard of Meinerzhagen and was buried in Wesel.

Kirsten Madsdatter: Kirsten Madsdatter (died 1613) was King Christian IV of Denmark's lover, and the mother of one of his three acknowledged, illegitimate sons, Christian Ulrik Gyldenløve.

Ulrik Christian Gyldenløve, Count of Samsø: Ulrik Christian Gyldenløve (1678 – December 1719) was a Danish navy Admiral and Governor of Iceland.  He was an acknowledged illegitimate son of King Christian V of Denmark and his officially acknowledged royal mistress Sophie Amalie Moth.

Karen Andersdatter: Karen Andersdatter (died 1673 in Copenhagen, Denmark) was the Danish mistress of King Christian IV of Denmark-Norway and the mother of one of his three illegitimate but acknowledged children, Hans Ulrik Gyldenløve.

Supporting paragraphs: Mathias Hansen House Christian IV of Denmark
Answer: Christian IV