\(1 + 2 + 2^2 + 2^3 + ......... + 2^{40} = N\)
This is a Geometric Series with First term, a = 1 and common ratio ,r as 2 and number of terms n as 41. [ \(2^0\) to \(2^{40}\) ][
Watch this video to learn about Geometric Series ]
Using Sum formula for Geometric Series
\(S_{n} = a*\frac{((𝒓^𝒏 − 𝟏)}{(𝐫−𝟏))}\)N = \(1*\frac{((2^{41} − 𝟏)}{(2−𝟏))}\) = \(2^{41}\) - 1
Now, we need to find remainder of \(2^{41}\) - 1 by 9
We can do this by
finding out the cycle of remainder of power of 2 by 9 [
Watch this video to learn this trick ]
\(2^1\) by 9 remainder is 2
\(2^2\) by 9 remainder is 4
\(2^3\) by 9 remainder is 8
\(2^4\) by 9 remainder is 7
\(2^5\) by 9 remainder is 5
\(2^6\) by 9 remainder is 1 [ Since we got 1 so it will repeat from next one ]
\(2^7\) by 9 remainder is 2
So, we need to divide the power of 2 by 6 (the cycle) and check the remainder
\(41/6\) remainder is 5
=> \(2^{41}\) will give the same remainder by 9 as \(2^5\)
=> Remainder of \(2^{41}\) by 9 is 5
Remainder of -1 by 9 will be 8 [-1 +9 = 8]
So, total remainder of \(2^{41}\) - 1 by 9 = 5 + 8 =13. This cannot be more than 9 so need to divide again by 9 to get final remainder as
\(13/9\) = 4
Hence,
Answer will be BHope it helps!
Video on Sequences