wtf! 

Zero-JS Hypermedia Browser

. Now consider the 'stuff' inside the function. Now if x is a rational number, then it can be expressed as p/q where p and q are integers. After multiplying by m!, as m gets arbitrarily large, you're bound to cancel the q. Hence we are dealing with a multiple of pi and its therefore a peak and equals 1. Otherwise it equals zero.
Not a proof, just an attempt to explain intuitively. Hope that helps.