MathDB
2016 LMT Theme #9

Source:

April 11, 2016

Problem Statement

A function f:{1,2,3,,2016}{1,2,3,,2016}f:\{ 1,2,3,\cdots ,2016\}\rightarrow \{ 1,2,3,\cdots , 2016\} is called good if the function g(n)=f(n)ng(n)=|f(n)-n| is injective. Furthermore, a good function ff is called excellent if there exists another good function ff' such that f(n)f(n)f(n)-f'(n) is nonzero for exactly one value of nn. Let NN be the number of good functions that are not excellent. Find the remainder when NN is divided by 10001000.
Proposed by Nathan Ramesh