Help, I'm Trapped in a Math Factory!

Algebra Level 5

A certain factory produces numbers to be used in math problems. A worker there named Alex is given a batch of N N numbers. First, he removes one number for inspection, then packages half of the remaining numbers. From the remaining numbers, he removes one and packages half the numbers after that. He repeats this process 2014 2014 more times (remove one, package half the remaining), and at the end, he is left with one number that he keeps for himself. Find the units digit of N N .

Notes:

After the first sorting, Alex is left with 1 2 ( N 1 ) \frac{1}{2}(N-1) numbers. After the second sorting, he is left with 1 2 ( 1 2 ( N 1 ) 1 ) \frac { 1 }{ 2 } \left(\frac { 1 }2(N-1)-1\right) numbers, and so on.


The answer is 1.

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

Steven Yuan
Nov 18, 2014

After the 2015 2015 th sorting, Alex has 2 ( 1 ) + 1 = 2 + 1 2(1)+1 = 2 + 1 numbers. (This is basically the inverse of the given function f ( x ) = 1 2 ( x 1 ) f(x) = \frac{1}{2}(x-1) in the problem.) After the 2014 2014 th sorting, Alex has 2 ( 2 ( 1 ) + 1 ) + 1 = 2 2 + 2 + 1 2(2(1)+1)+1 = 2^{2} + 2 + 1 numbers, and so on. Thus, after the 2016 n 2016-n th sorting, where n n is a positive integer less than 2016 2016 , there are 2 n + 2 n 1 + + 2 + 1 2^{n} + 2^{n-1} + \cdot + 2 + 1 numbers left. For n = 2016 n = 2016 , i.e. the start, we have 2 2016 + 2 2015 + + 2 + 1 = 2 2017 1 , 2^{2016} + 2^{2015} + \cdots + 2 + 1 = 2^{2017} - 1, where we apply the geometric series formula to calculate the series. 2 2017 2^{2017} has a units digit of 2 2 , so 2 2017 1 2^{2017} - 1 has units digit 1 . \boxed{1}.

Good one!!

Pranjal Jain - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...