I figured it out... but its too lenghty and im too stoned to care about writing it. If you or anybody really wish know, or if dont understand the reason (which is possible, as the reason is a bit complicated...), tell me and i will give a very detailed and step-by-step explanation.
If you want figure out, maybe this tip will help... remember that a number like 1364 can be written as 1000+300+60+4... the rest is up to yours! :thumbsup: