Let us consider the expression M^{M}+1, where M is a positive integer.
It can be verified that M=3 is the least value for which 2^{2} divides M^{M}+1.
Given that n is a positive integer, find the least value of M (in terms of n) for which M^{M}+1 is divisible by 2^{n}.