This may involve mods.
4 digit security codes in a particular city have this property:
the 4th digit is always the last digit of the sum of the first 3 digits. E.g. 3452, where 3 + 4 + 5 = 12, and 2 is the last digit of 12. Other examples include 5544.
There cannot be a security code with more than two consecutive digits the same (i.e. 6668 is not allowed, but 5544 is). How many different codes can be used?
Thanks in advance for any help.
Hi, I also posted this question on
Combinations question? - Yahoo!7 Answers
and got different answers with different working.
I am quite confused on which is the right method!
Originally Posted by BG5965
The second poster who replied to your post over there assumed that your security code cannot start with 0 whereas the first one assumed that it can. Hope this explains why they are different.
Ok, but can you still re-explain the answer briefly - I don't get his explanation fully.
Sorry, I'm even more confused now. So the answer is not 982, like on the other post on the other website?
Hi yet again.
The solution I originally posted was totally wrong. I have re-edited my post now, and I hope it’s better this time. The answer I have is 982. (Note that I am assuming that a security code can start with 0.)
Thanks a lot
I finally understand it now and I think now the answer is correct.
Thanks for your help again.