任意整数:
http://www.cnblogs.com/qiweiwang/archive/2010/12/17/1909482.html
半整数:
http://www.cnblogs.com/qiweiwang/archive/2010/11/30/1892169.html