태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

The number which is written as 1 followed by 20,000 zeroes
  is divided by the number
    which is written as 1 followed by 199 zeroes followed by a 7.
 
  Find the last digit of the quotient (if divided with remainder).


사용자 삽입 이미지


[SECRET]
Q:zero를 입력하세요
A:zero

[solution]
Exponents are hard to write here,
so let us use a^b to mean "a to the power b".
Now divide the polynomial X^100 by the polynomial X+7;
then the quotient is

X^99 - 7 x^99 + 7^2 x^98 - ... + 7^98 X - 7^99

with remainder (-7)^100=7^100.

Now put X=10^200,
and since the remainder 7^100 is less than 10^200, no more division is needed.

So the digit we need is the last digit of (10^99 - 7^99).

Now 7^4-2401 ending with 1,
so 7^99 ends with the same digit as 7^3=343, since 99=4(24)+3.
So 10^99 - 7^99 ends with the digit 7.
[/SECRET]

크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by SELVA