Number of $f$ for which $f(f(x))$ is constant
Source: AIME II 2013, Problem 11
April 4, 2013
functionAMCAIMEAIME IIcombinatorics
Problem Statement
Let and let be the number of functions from set to set such that is a constant function. Find the remainder when is divided by .