|
I.Vigneswar
|
|
Join Date: 15 Jun 2010
|
|
|
N=123456789123456789...180 DIGITS...WHEN N IS DIVIDED BY 37..WHAT WILL BE THE ANSWER... I AM GETTING THE ANSWER AS 12..IS THAT RIGHT
|
|
|
|
|
|
|
|
|
|
Maheshwaran R
|
|
Join Date: 13 Mar 2010
|
|
|
No, it is 17. Consider 123456789. For 37, we group in sets of 3 (as (10^3) % 37 = 1), & so (123+456+789) % 37 = 36 = -1. 20 such sets are there in the number in question, so 20 * (-1) = -20. So remainder is 37-20=17.
PS: I verified this with 'bc' (basic calculator in Linux which lets you deal with huge nos.)
|
|
|
|
|
|
|
|
|
|
I.Vigneswar
|
|
Join Date: 15 Jun 2010
|
|
|
I CONSULTED WITH BYJU..HE SAID 12 IS CORRECT
|
|
|
|
|
|
|
|
|
|
Maheshwaran R
|
|
Join Date: 13 Mar 2010
|
|
|
Like I said, I verified the answer on a computer. How did you arrive at 12?
|
|
|
|
|
|
|
|
|
|
jitesh Issrani
|
|
Join Date: 13 Mar 2010
|
|
|
Even I have verified. The answer is 17.
|
|
|
|
|
|
|
|
|