1을 따로 빼 두는 데는 이유가 있다. 약수가 1 하나뿐이라 "약수가 두 개"라는 소수의 모양에 맞지 않고, 더 중요하게는 1을 소수로 치면 12=2×2×3=1×2×2×3=1×1×2×2×3처럼 쪼개는 방법이 무한히 많아져 버린다. 잠시 뒤 볼 "쪼개는 방법은 한 가지"라는 사실을 지키기 위해 1은 원자 목록에서 뺀다. 2는 유일한 짝수 소수다. 다른 짝수는 전부 2를 약수로 갖기 때문이다.
에라토스테네스의 체
50까지의 소수를 한 번에 찾는 방법이 있다. 2부터 50까지 늘어놓고, 2를 남긴 채 2의 배수를 전부 지운다. 남은 수 중 다음 수 3을 남기고 3의 배수를 지운다. 다음 남은 수 5, 그다음 7에 대해서도 같이 한다. 지워지지 않고 남은 수가 소수다.
1부터 50까지의 체. 2, 3, 5, 7의 배수를 지우고 남은 15개가 소수다.
7까지만 하고 멈춰도 될까? 50 이하의 합성수 n=a×b(a가 작은 쪽)에서 a×a≤n≤50이므로 a≤7이다. a가 소수가 아니면 a의 소인수는 더 작다. 그러니 50 이하의 모든 합성수는 7 이하의 소수 중 하나를 약수로 가지고, 2,3,5,7의 배수를 지우는 것으로 합성수는 전부 걸러진다. 같은 논리가 소수 판정의 지름길이 된다.
정의소수 판정
n이 소수인지 알아보려면 제곱해서 n을 넘지 않는 소수들로만 나누어 보면 된다. 어느 것으로도 나누어떨어지지 않으면 소수다.
예제 1 · 소수처럼 보이는 수
97과 91은 소수인가?
풀이.10×10=100>97이므로 10 미만의 소수 2,3,5,7만 확인한다. 97은 홀수, 자릿수 합 16은 3의 배수가 아니고, 끝자리가 5나 0이 아니며, 97=7×13+6. 넷 다 안 되므로 97은 소수다.
91: 2,3,5는 같은 이유로 안 되지만 91=7×13. 합성수다.
검산: 7×13=91 ✓. 97은 8,9로도 나누어 볼 필요가 없다. 8이나 9가 약수라면 그 약수 2나 3이 먼저 걸렸을 것이다 ✓.
소인수분해
합성수를 소수만의 곱으로 쓰는 것을 소인수분해라 하고, 곱에 나오는 소수를 소인수라 한다. 360을 분해해 보자. 두 수의 곱으로 쪼개고, 쪼개진 수가 합성수면 또 쪼갠다.
360의 인수 나무. 36 × 10으로 쪼개기 시작해 끝에 남는 잎은 2, 2, 2, 3, 3, 5.
360=36×10=(4×9)×(2×5)=2×2×2×3×3×5.
같은 수를 여러 번 곱한 것은 줄여 쓴다. 2×2×2는 23("2의 세제곱")이라 쓰고, 위에 작게 쓴 3을 지수라 부른다. 그러면
360=23×32×5.
360=12×30이나 360=8×45로 시작해도 나무의 모양은 달라지지만 마지막 잎은 똑같이 2,2,2,3,3,5다. 어떤 자연수든 소인수분해의 결과는 순서를 빼면 한 가지뿐이다. 이 사실은 이 단원의 모든 도구가 서 있는 땅인데, 증명은 경시 과정의 정수론에서 한다. 지금은 믿고 쓰자.
나무 대신 나눗셈 사다리로 해도 된다. 가장 작은 소수부터 나누어떨어지는 동안 계속 나누고, 안 되면 다음 소수로 넘어간다.
예제 2 · 나눗셈 사다리
504를 소인수분해하여라.
풀이.504÷2=252, 252÷2=126, 126÷2=63. 이제 2로는 안 된다. 63÷3=21, 21÷3=7. 7은 소수이므로 끝.
504=23×32×7.
검산: 23=8, 32=9, 8×9×7=504 ✓.
주의
소인수분해는 소수로만 쓴다. 360=8×45나 360=23×45는 곱으로 쪼갠 것이지 소인수분해가 아니다. 45가 아직 32×5로 쪼개지기 때문이다. 끝에 남은 수가 전부 소수인지 확인하고 멈춘다.
소인수분해로 약수 세기
약수와 배수 차시에서 72의 약수를 짝지어 12개 찾았다. 소인수분해 72=23×32로 보면 세지 않고도 개수를 알 수 있다. 72의 약수는 2를 0,1,2,3개 중 몇 개, 3을 0,1,2개 중 몇 개 골라 곱한 수다. 다른 소수는 들어갈 수 없다. 2와 3 말고 다른 소인수를 가진 수는 72를 나누지 못하기 때문이다.
30=1
31=3
32=9
20=1
1
3
9
21=2
2
6
18
22=4
4
12
36
23=8
8
24
72
2의 개수 4가지와 3의 개수 3가지가 짝지어 표의 칸 4×3=12개를 만들고, 칸마다 다른 약수 하나씩이 들어간다. 그때의 목록과 정확히 같다.
정의약수의 개수
n=pa×qb×⋯로 소인수분해되면 약수의 개수는 (a+1)×(b+1)×⋯이다. 각 소수를 "0개부터 지수 개까지" 고르는 가짓수를 곱한 것이다.
예제 3 · 세지 않고 세기
360의 약수는 몇 개인가?
풀이.360=23×32×51이므로 (3+1)×(2+1)×(1+1)=4×3×2=24개.
검산: 짝으로 세어도 된다. 18×18=324≤360<361이므로 18까지 확인 — 1,2,3,4,5,6,8,9,10,12,15,18의 12개가 작은 쪽이고 각각 짝이 있으니 24개 ✓.
약수와 배수 차시의 "약수 개수가 홀수 ⟺ 제곱수"도 여기서 다시 보인다. 3,600=24×32×52처럼 지수가 모두 짝수이면 (4+1)(2+1)(2+1)=45로 홀수이고, 실제로 3,600=(22×3×5)2=602이다. 지수가 하나라도 홀수이면 그 (지수+1)이 짝수라 전체가 짝수가 된다.
소수는 끝이 없다
소수 목록은 2,3,5,7,11,…로 이어진다. 언젠가 끝날까? 이천 년도 더 전에 유클리드가 끝나지 않는다는 것을 증명했고, 그 논증은 지금도 그대로 통한다.
소수가 유한 개뿐이라서 전부 적을 수 있다고 하자. 그 소수를 모두 곱한 뒤 1을 더한 수 N을 만든다. N을 목록의 어떤 소수로 나누어도 나머지가 1이다. 곱한 부분은 나누어떨어지고 더한 1이 남기 때문이다. 그런데 N은 1보다 큰 자연수이므로 소수이거나, 소수인 약수를 가진다. 그 소수는 목록의 어느 소수로도 나누어떨어지지 않는 N을 나누므로 목록에 없던 소수다. 목록이 전부였다는 가정에 모순이다. 그러므로 소수는 끝이 없다.
작은 예로 감을 잡자. 2×3×5×7+1=211은 소수다. 2×3×5×7×11×13+1=30,031=59×509는 소수가 아니지만, 그 소인수 59와 509는 곱한 목록에 없던 새 소수다. 증명이 약속한 것은 "N이 소수"가 아니라 "N의 소인수가 새 소수"라는 점이다.
참고
소수는 무한히 많지만 규칙적으로 나타나지는 않는다. 100까지 25개, 1,000까지 168개로 점점 드물어지고, 2와 3 말고는 이웃한 소수가 없다(하나는 짝수이므로). 11과 13, 17과 19처럼 2 차이 나는 쌍이 무한히 많은지는 아직 아무도 모른다.
Goals
Define prime and composite numbers, and explain why 1 is neither.
Find primes with the sieve of Eratosthenes, and explain why testing a number for primality only needs the primes whose square does not exceed it.
Factor a number into primes, write the result with exponents, and count factors from the prime factorization.
Follow Euclid's proof that the primes never run out.
Numbers that cannot be split
Some numbers split into a product of smaller numbers, like 12=3×4. Split once more, 4=2×2, and 12=2×2×3, where it ends: 2 and 3 have no factors besides 1 and themselves, so they cannot be split further. Such numbers are primes, the atoms of multiplication.
DefinitionPrimes and composites
A whole number greater than 1 whose only factors are 1 and itself is prime; one with additional factors is composite. The number 1 is neither prime nor composite.
There is a reason for setting 1 aside. Its only factor is 1 itself, so it does not fit the "exactly two factors" shape of a prime; more importantly, if 1 counted as a prime, then 12=2×2×3=1×2×2×3=1×1×2×2×3 would have infinitely many splittings. To protect the fact, coming shortly, that "there is only one way to split," 1 is left off the list of atoms. Note that 2 is the only even prime, since every other even number has 2 as a factor.
The sieve of Eratosthenes
There is a way to find all primes up to 50 in one sweep. List 2 through 50. Keep 2 and cross out every other multiple of 2. The next survivor is 3: keep it and cross out its multiples. Do the same with the next survivors, 5 and 7. Whatever is never crossed out is prime.
The sieve from 1 to 50. After crossing out the multiples of 2, 3, 5, and 7, the 15 survivors are the primes.
Is it safe to stop at 7? Take a composite n=a×b with n≤50 and a the smaller factor. Then a×a≤n≤50, so a≤7; and if a is not itself prime, it has an even smaller prime factor. So every composite up to 50 has a prime factor of at most 7, and crossing out the multiples of 2,3,5,7 catches every composite. The same reasoning gives a shortcut for testing a single number.
DefinitionTesting for primality
To decide whether n is prime, divide only by the primes whose square does not exceed n. If none divides evenly, n is prime.
Example 1 · Numbers that look prime
Are 97 and 91 prime?
Solution. Since 10×10=100>97, only the primes below 10 need testing: 2,3,5,7. 97 is odd; its digit sum 16 is not a multiple of 3; it does not end in 0 or 5; and 97=7×13+6. All four fail, so 97 is prime.
91: 2,3,5 fail for the same reasons, but 91=7×13. Composite.
Check: 7×13=91 ✓. There was no need to try 8 or 9 on 97: if either divided it, its factor 2 or 3 would have been caught first ✓.
Prime factorization
Writing a composite number as a product of primes only is called prime factorization, and the primes involved are its prime factors. Let's factor 360. Split it into two factors; whenever a factor is composite, split it again.
A factor tree for 360. Starting from 36 × 10, the leaves at the bottom are 2, 2, 2, 3, 3, 5.
360=36×10=(4×9)×(2×5)=2×2×2×3×3×5.
Repeated factors are abbreviated: 2×2×2 is written 23 ("2 cubed," or "2 to the third"), and the small raised 3 is the exponent. So
360=23×32×5.
Starting from 360=12×30 or 360=8×45 gives a differently shaped tree, but the leaves at the bottom are the same 2,2,2,3,3,5. For every whole number, the prime factorization is unique apart from the order of the factors. This fact is the ground on which every tool in this unit stands; its proof belongs to the number theory of the competition track. For now, use it with confidence.
Instead of a tree, a division ladder works too: divide by the smallest prime as long as it goes in evenly, then move on to the next prime.
Example 2 · The division ladder
Factor 504 into primes.
Solution.504÷2=252, 252÷2=126, 126÷2=63. Now 2 no longer goes in. 63÷3=21, 21÷3=7. Since 7 is prime, stop.
504=23×32×7.
Check: 23=8, 32=9, and 8×9×7=504 ✓.
Watch out
A prime factorization uses primes only. 360=8×45 and 360=23×45 are splittings, not prime factorizations, because 45 still splits into 32×5. Stop only when every number left is prime.
Counting factors from the factorization
In the factors-and-multiples lesson we paired up the factors of 72 and found 12 of them. From the factorization 72=23×32, the count can be known without listing. A factor of 72 is built by choosing 0,1,2, or 3 copies of 2 and 0,1, or 2 copies of 3, then multiplying. No other prime can appear, since a number with some other prime factor cannot divide 72.
30=1
31=3
32=9
20=1
1
3
9
21=2
2
6
18
22=4
4
12
36
23=8
8
24
72
Four choices for the 2s and three for the 3s combine into 4×3=12 cells, each holding a different factor. It is exactly that list.
DefinitionThe number of factors
If n=pa×qb×⋯ is the prime factorization, the number of factors of n is (a+1)×(b+1)×⋯: the product of the number of ways to choose each prime, from 0 copies up to the exponent.
Example 3 · Counting without listing
How many factors does 360 have?
Solution.360=23×32×51, so there are (3+1)×(2+1)×(1+1)=4×3×2=24 factors.
Check by pairing: since 18×18=324≤360<361, test up to 18. The smaller members are 1,2,3,4,5,6,8,9,10,12,15,18, twelve of them, each with a partner, so 24 ✓.
The factors-and-multiples lesson's "odd number of factors exactly for perfect squares" shows up here too. When every exponent is even, as in 3,600=24×32×52, the count (4+1)(2+1)(2+1)=45 is odd, and indeed 3,600=(22×3×5)2=602. If any exponent is odd, that (exponent+1) is even and so is the whole product.
The primes never run out
The list of primes goes 2,3,5,7,11,…. Does it ever stop? More than two thousand years ago Euclid proved that it does not, and his argument works today exactly as it did then.
Suppose there were only finitely many primes, so that all of them could be written down. Form the number N by multiplying all of them together and adding 1. Dividing N by any prime on the list leaves remainder 1, because the product part divides evenly and the added 1 is left over. But N is a whole number greater than 1, so it is either prime or has a prime factor. That prime divides N, which none of the listed primes does, so it is a prime not on the list. This contradicts the assumption that the list was complete. Therefore the primes never run out.
Small cases give a feel for it. 2×3×5×7+1=211 is prime. 2×3×5×7×11×13+1=30,031=59×509 is not prime, but its prime factors 59 and 509 are new primes missing from the product. What the proof promises is not "N is prime" but "the prime factors of N are new."
Note
The primes are infinite but irregular. There are 25 of them up to 100 and 168 up to 1,000, so they thin out; and apart from 2 and 3, no two primes are neighbors, since one of any two neighbors is even. Whether there are infinitely many pairs two apart, like 11 and 13 or 17 and 19, is a question nobody has answered yet.
체를 쓴다. 2의 배수를 지우면 홀수만 남고, 3의 배수(9,15,21,27,33,39,45)를 지우고, 5의 배수(25,35)를 지우고, 7의 배수(49)를 지운다. 남는 수는
2,3,5,7,11,13,17,19,23,29,31,37,41,43,47
의 15개다. 7×7=49≤50<121=11×11이므로 7까지만 지우면 충분하다.
검산: 1은 소수가 아니므로 빠졌고, 49=7×7이 지워진 것이 맞다 ✓.
Use the sieve. Crossing out multiples of 2 leaves the odd numbers; then cross out multiples of 3 (9,15,21,27,33,39,45), of 5 (25,35), and of 7 (49). The survivors are
2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,
fifteen of them. Since 7×7=49≤50<121=11×11, sieving up to 7 is enough.
Check: 1 is not prime and is left out, and 49=7×7 was rightly crossed out ✓.
핵심Core
이 차시의 목표 수준the target level for this lesson
문제Problem 5핵심Core
143과 221은 소수인가? 아니면 소인수분해하여라.
Are 143 and 221 prime? If not, factor them into primes.
정답과 풀이Answer & solution
정답 · 둘 다 합성수. 143=11×13, 221=13×17.
Answer · Both composite: 143=11×13, 221=13×17.
143: 12×12=144>143이므로 11까지의 소수 2,3,5,7,11을 확인한다. 홀수, 자릿수 합 8, 끝자리 3, 143=7×20+3으로 2,3,5,7은 안 되고, 143=11×13. 합성수.
221: 15×15=225>221이므로 13까지의 소수를 확인한다. 2,3,5,7(221=7×31+4), 11(221=11×20+1)은 안 되고, 221=13×17. 합성수.
검산: 11×13=143 ✓, 13×17=221 ✓.
143: since 12×12=144>143, test the primes up to 11: 2,3,5,7,11. It is odd, has digit sum 8, ends in 3, and 143=7×20+3, so 2,3,5,7 fail; but 143=11×13. Composite.
221: since 15×15=225>221, test the primes up to 13. 2,3,5,7 (221=7×31+4) and 11 (221=11×20+1) fail; but 221=13×17. Composite.
Check: 11×13=143 ✓ and 13×17=221 ✓.
문제Problem 6핵심Core
약수의 개수를 소인수분해로 구하여라.
(a) 360 (b) 1,000
Use prime factorization to find the number of factors.
(a) 360 (b) 1,000
정답과 풀이Answer & solution
정답 · (a) 24개 (b) 16개
Answer · (a) 24 (b) 16
(a) 360=23×32×5이므로 (3+1)(2+1)(1+1)=24개.
(b) 1,000=103=(2×5)3=23×53이므로 (3+1)(3+1)=16개.
검산: (b) 1,000의 약수를 2의 개수(0~3)와 5의 개수(0~3)로 표를 만들면 4×4=16칸: 1,2,4,8,5,10,20,40,25,50,100,200,125,250,500,1,000 ✓.
(a) 360=23×32×5, so (3+1)(2+1)(1+1)=24 factors.
(b) 1,000=103=(2×5)3=23×53, so (3+1)(3+1)=16 factors.
Check on (b): a table by the number of 2s (0 to 3) and the number of 5s (0 to 3) has 4×4=16 cells: 1,2,4,8,5,10,20,40,25,50,100,200,125,250,500,1,000 ✓.
문제Problem 7핵심Core
소인수분해를 이용하여 1,444와 600이 제곱수인지 판정하여라. 제곱수이면 어떤 수의 제곱인지 밝혀라.
Use prime factorization to decide whether 1,444 and 600 are perfect squares. If one is, say which number it is the square of.
정답과 풀이Answer & solution
정답 · 1,444=22×192=382는 제곱수. 600=23×3×52는 제곱수가 아니다.
Answer · 1,444=22×192=382 is a perfect square. 600=23×3×52 is not.
1,444÷2=722, 722÷2=361, 361=19×19. 따라서 1,444=22×192. 지수가 모두 짝수이므로 제곱수이고, 1,444=(2×19)2=382.
600=6×100=2×3×22×52=23×3×52. 2의 지수 3과 3의 지수 1이 홀수이므로 제곱수가 아니다.
검산: 38×38=1,444 ✓. 24×24=576<600<625=25×25이므로 600은 두 제곱수 사이에 있다 ✓.
1,444÷2=722, 722÷2=361, and 361=19×19. So 1,444=22×192. Every exponent is even, so it is a square: 1,444=(2×19)2=382.
600=6×100=2×3×22×52=23×3×52. The exponents of 2 and 3 are odd, so it is not a square.
Check: 38×38=1,444 ✓. And 24×24=576<600<625=25×25, so 600 falls between two consecutive squares ✓.
문제Problem 8핵심Core
40=23×5의 약수를 표로 빠짐없이 나열하고, 개수가 공식과 맞는지 확인하여라.
List all factors of 40=23×5 in a table, and confirm that the count agrees with the formula.
검산: 짝짓기로 — 6×6=36≤40<49이므로 6까지 확인하면 1×40,2×20,4×10,5×8의 네 짝, 8개 ✓.
Choose 0,1,2, or 3 copies of 2 and 0 or 1 copy of 5.
50=1
51=5
20=1
1
5
21=2
2
10
22=4
4
20
23=8
8
40
There are 4×2=8 cells, matching the formula (3+1)(1+1)=8.
Check by pairing: since 6×6=36≤40<49, test up to 6: the pairs 1×40,2×20,4×10,5×8 give eight factors ✓.
문제Problem 9핵심Core
120 이하의 수가 소수인지 판정하려면 어떤 소수들로만 나누어 보면 충분한가? 그 소수들로 101,111,119를 판정하여라.
To test whether a number up to 120 is prime, which primes suffice as trial divisors? Use them to test 101,111,119.
정답과 풀이Answer & solution
정답 · 2,3,5,7. 101은 소수, 111=3×37, 119=7×17.
Answer · 2,3,5,7. 101 is prime; 111=3×37; 119=7×17.
11×11=121>120이므로 11 미만의 소수 2,3,5,7이면 충분하다. 120 이하의 합성수는 반드시 7 이하의 소인수를 갖기 때문이다.
101: 홀수, 자릿수 합 2, 끝자리 1, 101=7×14+3. 소수.
111: 자릿수 합 3이 3의 배수, 111=3×37. 합성수.
119: 2,3,5는 안 되고 119=7×17. 합성수.
검산: 3×37=111 ✓, 7×17=119 ✓. 37과 17이 소수인지도 확인 — 각각 2,3,5와 2,3으로 나누어떨어지지 않는다 ✓.
Since 11×11=121>120, the primes below 11, namely 2,3,5,7, suffice: every composite up to 120 must have a prime factor of at most 7.
101: odd, digit sum 2, ends in 1, and 101=7×14+3. Prime.
111: digit sum 3 is a multiple of 3, and 111=3×37. Composite.
119: 2,3,5 fail, but 119=7×17. Composite.
Check: 3×37=111 ✓ and 7×17=119 ✓. Also 37 and 17 are prime: neither is divisible by 2,3,5 (for 37) or 2,3 (for 17) ✓.
도전Challenge
아이디어를 결합해야 풀리는 문제problems that take more than one idea
문제Problem 10도전Challenge
약수가 정확히 6개인 가장 작은 자연수를 구하여라.
Find the smallest whole number with exactly 6 factors.
힌트Hint
약수의 개수 공식에서 (a+1)(b+1)⋯=6이 되는 지수 조합은 두 가지뿐이다.
In the factor-count formula, there are only two ways for (a+1)(b+1)⋯ to equal 6.
정답과 풀이Answer & solution
정답 · 12
Answer · 12
약수 개수는 (지수+1)들의 곱이다. 이 곱이 6이 되는 방법은 6 하나이거나 2×3뿐이다.
소인수가 하나, 지수 5: p5 꼴. 가장 작은 것은 25=32.
소인수가 둘, 지수 1과 2: p×q2 꼴. 가장 작은 것은 큰 지수에 작은 소수를 주어 22×3=12. (2×32=18은 더 크다.)
둘 중 작은 것은 12.
검산: 12의 약수는 1,2,3,4,6,12의 6개 ✓. 12보다 작은 수들의 약수 개수는 11: 2개, 10: 4개, 9: 3개, 8: 4개, 7: 2개, 6: 4개, 5 이하: 3개 이하 — 6개인 것이 없다 ✓.
The number of factors is the product of the (exponent+1) terms. That product equals 6 either as a single 6 or as 2×3.
One prime with exponent 5: the form p5, smallest 25=32.
Two primes with exponents 1 and 2: the form p×q2, smallest when the larger exponent goes to the smaller prime, 22×3=12 (while 2×32=18 is larger).
The smaller of the two is 12.
Check: the factors of 12 are 1,2,3,4,6,12, six of them ✓. Below 12, the factor counts are 11: 2, 10: 4, 9: 3, 8: 4, 7: 2, 6: 4, and at most 3 for 5 and below; none has six ✓.
문제Problem 11도전Challenge
100 이하의 자연수 중 약수가 정확히 12개인 수를 모두 구하여라.
Find every whole number up to 100 that has exactly 12 factors.
힌트Hint
(지수+1)들의 곱이 12가 되는 방법은 12, 6×2, 4×3, 3×2×2의 네 가지다. 각 경우가 어떤 소인수분해 꼴에 해당하는지 쓰고, 100 이하인 것만 골라라.
The product of the (exponent+1) terms can equal 12 in four ways: 12, 6×2, 4×3, 3×2×2. Write the prime-factorization shape for each case and keep only the numbers up to 100.
Check: the factors of 60 are 1,2,3,4,5,6,10,12,15,20,30,60, twelve ✓. And 96=25×3 gives (5+1)(1+1)=12 ✓.
문제Problem 12도전Challenge서술형written response
소수가 무한히 많다는 유클리드의 증명을 자신의 말로 다시 써라. 그리고 2×3×5×7×11×13+1=30,031=59×509가 소수가 아니라는 사실이 증명을 무너뜨리지 않는 이유를 설명하여라.
Rewrite Euclid's proof that there are infinitely many primes in your own words. Then explain why the fact that 2×3×5×7×11×13+1=30,031=59×509 is not prime does not break the proof.
풀이와 채점 기준Solution & grading notes
증명. 소수가 유한 개뿐이라고 가정하고 그 목록을 전부 적는다. 목록의 소수를 모두 곱하고 1을 더한 수를 N이라 하자. 목록의 어떤 소수 p로 N을 나누어도, 곱한 부분은 p의 배수이고 1이 남으므로 나머지가 1이다. 즉 N은 목록의 어느 소수로도 나누어떨어지지 않는다. 그런데 1보다 큰 자연수 N은 소수이거나 소수인 약수를 갖는다. 그 소수는 N을 나누므로 목록에 있을 수 없다. 목록에 없는 소수가 존재하니, "목록이 전부"라는 가정이 틀렸다. 따라서 소수는 유한 개일 수 없다.
30,031의 경우. 증명은 "N이 소수"라고 주장하지 않는다. "N의 소인수는 목록에 없는 새 소수"라고 주장한다. 30,031=59×509의 소인수 59와 509는 곱한 목록 2,3,5,7,11,13에 없는 소수이므로 증명이 약속한 그대로다. N이 합성수여도 새 소수를 내놓는다는 점에는 변함이 없다.
채점 기준 (논리가 맞는 다른 풀이도 만점). ① 목록의 곱에 1을 더한 N이 목록의 어느 소수로도 나누어떨어지지 않음(나머지 1)을 밝히면 기본 점수. ② N의 소인수가 목록 밖의 소수라서 모순임을 밝히면 추가 점수. ③ 증명이 "N이 소수"가 아니라 "N의 소인수가 새 소수"를 주장한다는 점을 30,031로 설명하면 만점.
Proof. Suppose there are only finitely many primes, and write the complete list. Let N be the product of every prime on the list, plus 1. Dividing N by any prime p on the list leaves remainder 1, since the product part is a multiple of p and the extra 1 is left over. So no prime on the list divides N. But N is a whole number greater than 1, so it is prime or has a prime factor. That prime divides N, so it cannot be on the list. A prime not on the list exists, contradicting the assumption that the list was complete. Hence the primes cannot be finite in number.
The case of 30,031. The proof never claims that N is prime. It claims that the prime factors of N are new primes missing from the list. The prime factors of 30,031=59×509, namely 59 and 509, are indeed absent from the list 2,3,5,7,11,13, exactly as promised. Whether N is prime or composite, it produces a new prime.
Rubric (any logically correct solution earns full credit). ① Showing that N, the product of the listed primes plus 1, is divisible by none of them (remainder 1): base credit. ② Showing that a prime factor of N lies outside the list, giving the contradiction: more credit. ③ Explaining through 30,031 that the proof asserts "the prime factors of N are new," not "N is prime": full credit.
경시Contest
대회 스타일competition style
문제Problem 13경시Contest
1×2×3×⋯×99×100을 계산하면 끝에 0이 연달아 몇 개 붙는가?
How many zeros are at the end of 1×2×3×⋯×99×100?
힌트Hint
끝의 0 하나는 소인수 2와 5의 짝 하나에서 나온다. 2는 넉넉하니 5의 개수를 세면 된다. 소인수분해에서 5가 몇 번 나오는지, 수 하나하나에 대해 정직하게 세어 보라.
Each trailing zero comes from one pair of prime factors 2 and 5. There are plenty of 2s, so count the 5s. Count honestly, number by number, how many times 5 appears in each factorization.
정답과 풀이Answer & solution
정답 · 24개
Answer · 24
곱의 끝에 붙는 0의 개수는 곱을 소인수분해했을 때 2와 5의 짝의 개수, 즉 2의 개수와 5의 개수 중 작은 쪽이다. 1부터 100까지에는 짝수가 50개나 있어 2는 5보다 훨씬 많으므로 5의 개수만 세면 된다.
5의 배수 5,10,15,…,100은 100÷5=20개이고, 각각 5를 적어도 하나씩 준다. 그중 25,50,75,100은 25=52의 배수라서 5를 하나씩 더 준다. 100÷25=4개. 125=53의 배수는 100 이하에 없다.
5의개수=20+4=24.
따라서 끝에 0이 24개 붙는다.
검산: 1부터 10까지의 곱은 5가 두 개(5,10)라서 0이 두 개였다(3,628,800). 같은 셈법이다 ✓. 25를 한 번만 세면 20개로 틀린다 — 25=5×5가 5를 두 개 낸다는 점이 이 문제의 핵심이다.
The number of trailing zeros is the number of 2–5 pairs in the prime factorization of the product, that is, the smaller of the number of 2s and the number of 5s. From 1 to 100 there are 50 even numbers, so the 2s vastly outnumber the 5s, and only the 5s need counting.
The multiples of 5, namely 5,10,15,…,100, number 100÷5=20, and each contributes at least one 5. Among them, 25,50,75,100 are multiples of 25=52 and contribute one extra5 each: 100÷25=4. No multiple of 125=53 lies within 100.
number of 5s=20+4=24.
So the product ends in 24 zeros.
Check: the product 1 through 10 had two 5s (5 and 10) and ended in two zeros (3,628,800), by the same count ✓. Counting 25 only once would give 20, which is wrong; that 25=5×5 supplies two 5s is the heart of the problem.