Hi,
your question is about a topic that we are not able to help you with.
Our site www.a-kasser.dk is about unemployment insurance in Denmark, and we don't know enough about the legislation about residence permit to help you in a professional way.
However, we will recommend you to visit this website from The Danish Immigration Service: https://www.nyidanmark.dk/en-GB.
This is the official portal for foreign nationals who wish to visit, live or work in Denmark.
If you have been paying to Unemployment insurance in Norway, and have questions about transfering earned rights in relation to Unemployment Insurance from Norway to Denmark, we would be happy to help you.
Best regards,
Anders, www.a-kasser.dk