Number Plate Puzzle

Except for some special vehicles (like military vehicles), all other vehicles have license plates with four digits (lower digit numbers can be assumed to be four digit numbers with preceding zeros). Assume that these numbers are uniformly distributed among the vehicles of a city and also assume that vehicles with number plate 0000 also exist.

Now for every number plate a b c d abcd , we consider the difference S = a b c d S = \lvert ab - cd\rvert and average this answer over a large number of vehicles. What is the integer part of the average that is obtained?

Note: For example, for a number plate 1234 1234 , we have S = 12 34 = 22 = 22 S = |12-34|=|-22|=22 ).


The answer is 33.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

This is more of an intuitive approach. Since the numbers represented by a b ab and c d cd are uniformly distributed over the range 00 00 to 99 99 this problem is in essence equivalent to that of finding the expected distance between two randomly positioned points on a line segment of a given length L L . This is known to be L / 3 L/3 , and so the desired solution in this case is 99 / 3 = 33 99/3 = \boxed{33} .

EDIT: O.k., now for a proper solution.

The sum of absolute differences between any number a b ab and all the other numbers equals

k = 0 a b ( k ) + k = 0 99 a b ( k ) \displaystyle\sum_{k=0}^{ab}(k) + \displaystyle\sum_{k=0}^{99 - ab}(k) .

(I included k = 0 k=0 so as to cover the case when a b = 0 ab = 0 .) The average absolute difference associated with this number will then be this sum divided by 99 99 . We then need to sum all of these averages over the range for a b ab and then divide this sum by 100 100 , as there are 100 100 numbers in this range. Exploiting some inherent symmetries, the sum of average absolute differences can be simplified to

( 1 / 99 ) 2 n = 0 99 k = 0 n ( k ) = (1/99) * 2 * \displaystyle\sum_{n=0}^{99} \displaystyle\sum_{k=0}^{n}(k) =

( 2 / 99 ) n = 0 99 ( n ( 100 n ) ) (2/99) * \displaystyle\sum_{n=0}^{99}(n * (100 - n)) =

( 2 / 99 ) ( 100 n = 0 99 ( n ) n = 0 99 ( n 2 ) ) (2/99) * (100 * \displaystyle\sum_{n=0}^{99}(n) - \displaystyle\sum_{n=0}^{99}(n^{2})) .

Using the appropriate summation formulae, this comes out to

( 2 / 99 ) ( ( 100 99 100 / 2 ) ( 99 100 199 / 6 ) ) = 10000 ( 19900 / 3 ) = 10100 / 3 (2/99) * ((100 * 99 * 100 / 2) - (99 * 100 * 199 / 6)) = 10000 - (19900 / 3) = 10100 / 3 .

Finally, we just need to divide this value by 100 to find the overall average and then take the integer part as our solution. Doing this, we obtain the solution 101 / 3 = 33 \lfloor{101 / 3}\rfloor = \boxed{33} .

can i get the mathematical solution for this?

Abhishek Sharma - 6 years, 11 months ago

Log in to reply

@Abhishek Sharma I have just now edited my post to include a "mathematical" solution. For the sake of brevity I have skipped over some of the details in the summation, but I hope that I have provided enough information to give you a general idea of how to solve this problem. Cheers. :)

Brian Charlesworth - 6 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...