I'm not sure. I couldn't find the IR codes for that model on the Denon CI site.
Denon don't usually change their codes but the 51N does have some other commands on the original remote compared to the 3N. 'Party' on the 51N and 'Internet Radio' on the 3N.
51N
3N