Find the least number whose last digit is 7 and which becomes 5 times larger when this digit is carried to the beginning of the number.
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.
Brilliant. My way was much longer but I like this solution!
For variety's sake, here's a number theory approach to the problem ....
Letting n be the number we are after, we subtract 7 from n , divide that result by 1 0 to 'shift' the remaining digits to the right, leaving room to put the 7 at the front of the newly formed number, which we are told is equal to 5 n . This process is summarized by the equation
1 0 n − 7 + 7 ∗ 1 0 a = 5 n ,
where a is the order of magnitude of n . Simplifying this equation gives us that
n − 7 + 7 ∗ 1 0 a + 1 = 5 0 n ⟹ 4 9 n = 7 ∗ ( 1 0 a + 1 − 1 ) ⟹ 7 n = 1 0 a + 1 − 1 .
This is equivalent to stating that 1 0 a + 1 ≡ 1 m o d 7 . Now by Fermat's Little Theorem we know that 1 0 6 ≡ 1 m o d 7 , so equating exponents we see that a + 1 = 6 ⟹ a = 5 .
Thus 7 n = 1 0 6 − 1 = 9 9 9 9 9 9 ⟹ n = 1 4 2 8 5 7 .
l e t n u m b e r = . . . . . 7 . . . . 7 ∗ 5 = 7 . . . . . . t h i s i s w h a t t h e q u e s t i o n s a y s n o w n o t i c e w h e n w e m u l t i p l y 7 w i t h 5 u n i t d i g i t o f n e w n o w o u l d b e 5 a n d h e n c e i t w o u l d b e t h e 2 n d l a s t d i g i t o f o r i g i n a l n u m b e r . n u m b e r = . . . . . . 5 7 n o w s u p p o s i n g n u m b e r t o b e o f d i f f e r e n t d i g i t s . c a s e 1 a 3 d i g i t n u m b e r a 5 7 ∗ 5 = 7 a 5 i n e x p a n d e d f o r m w e f i n d t h e a b o v e e q u a t i o n b u t g e t a d e c i m a l v a l u e o f a . w h i c h i s n o t p o s s i b l e w e c o n t i n u e t h e s a m e p r o c e s s f o r a 6 d i g i t n u m b e r a s b e f o r e i t i n a l l c a s e y o u w i l l g e t d e c i m a l v a l u e o f a b o r a b c c a s e 2 a 6 d i g i t n u m b e r a b c d 5 7 ∗ 5 = 7 a b c d 5 ( 1 0 0 0 0 0 a + 1 0 0 0 0 b + 1 0 0 0 c + 1 0 0 d + 5 7 ) 5 = 5 ( 1 4 0 0 0 0 + 2 0 0 0 o a + 2 0 0 0 b + 2 0 0 c + 2 d + 1 ) s o l v i n g w e g e t 9 8 ( 1 0 0 0 a + 1 0 0 b + 1 0 c + d ) = 1 3 9 9 4 4 a b c d = 1 4 2 8 n o t e : a b c d r e p r e s e n t s 1 0 0 0 a + 1 0 0 b + 1 0 c + d t h e r e f o r e l e a s t s u c h n u m b e r = a b c d 5 7 = 1 4 2 8 5 7 .
This is how I did it as well; however, Anshul I think did it the most elegant and easiest way thus far.
sorry,i didn't get your solution,can you plz explain it in more easier way........
Very detailed solution. Did you try out 4 and 5 digit nos? If no, why?
we have a number with n digits, were the last is 7:
d1 d2 d3 ... d(n-1) dn = d1 d2 d3 ... d(n-1) 7
When the last digit is carried of to the beginning, we have
7 d1 d2 d3 ... d(n-1)
But, when it holds the number becomes 5 times larger. So, we have:
7 d1 d2 d3 ... d(n-1) = 5 x (d1 d2 d3 ... d(n-1) 7)
Well, note first that 5 x 7 = 35
So, we must have 5 x (d1 d2 ... d(n-1) 7 ) ending in 5, which means that d(n-1) = 5 and:
7 d1 d2 d3 ... d(n-2) 5 = 5 x (d1 d2 d3 ... d(n-2) 57)
Note now that 5 x 57 = 285
So, 5 x (d1 d2 d3 ... d(n-2) 57) ends in 85, which means that d(n-2) = 8 and:
7 d1 d2 d3 ... d(n-3) 85 = 5 x (d1 d2 d3 ... d(n-3) 857)
Now, 5 x 857 = 4285, which means that d(n-3) = 2
Continuing on this way, we eventually obtain the number 142857 which, multiplied by 5 becomes 714285.
Problem Loading...
Note Loading...
Set Loading...
Let the no. be ...abc7
Since it is given that
We find that c = 5. Putting this value of c back in equation we have 5(...ab57) = 7...ab5 we gives b= 8. Continuing this way till we get 7 for the first time, we find required number is 142857