I just joined … sounds like a great idea, i just have two questions:
1 - Your example doesnt add up for me?
For Example:
Assuming that it draws a lottery on January 22nd in US Time, and on January 21st, Apple’s closing stock price is 542.59. By the end of 11:59:59 pm PST on January 21st, there are 53872 people who join in the lucky draw, then the winning number is the Remainder of 20090323*59/53872=22002, which is 37313. So, the winning number is 37313.
My calculation:
20090323*59 = 1185329057
1185329057/53872 = 22002.6926232551232551232551
I may be having a dyslexic moment bu i cant see where the 37313 come from?
2 - What happens if the final calculation doesnt add up to a valid lottery number? Will a prize still be given away to an entrant?
What we calculate is the Remainder, which can ensure everyone have chance to win. At last, the apple stock price and the number of participants will decide what the remainder is.
For the first question: our example doesnt add up for you ?
What it calculates is the remainder.
From wikipedia, remainder is the amount “left over” after the division of two integers which cannot be expressed with an integer quotient.
For example, 7/3=2 …… 1, which means integer quotient is 2, then the remainder is 1, and you will find 2*3+1=7
Your calculation: 1185329057/53872 = 22002.6926232551232551232551.
Actually, the 22002.6926232551232551232551 that your calculate is decimals quotient. However, what it calculate is the remainder, so it is 37313, and you will find 53872 * 22002 + 37313 = 1185329057 = 20090323*59.
.
For second question: What happens if the final calculation doesn’t add up to a valid lottery number?
Every lottery number is valid as we calculate the remainder.
For example, if 5 people join, the remainder for 5 it 0, 1 ,2 , 3 ,4 , which is the 5 lottery numbers that the entrants will has, so every lottery number is valid.
It seems a little complicated, do I explain clearly ?
I think about as clear as one can be … thanks Kevin
But i’ll have to take your word for it on the calculation … because thats WAY over my head nowadays … dam i must have forgotten everything about maths i learnt in school (or perhaps i never really learnt anything to begin with haha).