When 100! is written in base 16, how many zeros does it end with?
Each trailing zero in base 16 needs one factor 16 = 2⁴.
Power of 2 in 100! = 50 + 25 + 12 + 6 + 3 + 1 = 97.
⌊97/4⌋ = 24 zeros.
Number System · Exercise 3 of 6
40 hard Number System questions for CAT-style and bank PO mains practice: last two digits, Fermat, Euler and Wilson remainders, co-prime factorisation, Legendre's formula and base conversion.
When 100! is written in base 16, how many zeros does it end with?
Each trailing zero in base 16 needs one factor 16 = 2⁴.
Power of 2 in 100! = 50 + 25 + 12 + 6 + 3 + 1 = 97.
⌊97/4⌋ = 24 zeros.
How many natural numbers less than 1,000 are divisible by 5 but do not contain the digit 5 anywhere?
A multiple of 5 ends in 0 or 5; ending in 5 is not allowed, so it ends in 0: the number looks like AB0.
A and B can each be any digit except 5 (9 choices each) → 81, minus AB = 00 (the number 0) → 80.
What is the largest power of 2 that divides 3100 − 1?
Rule (lifting the exponent) for odd a and even n: power of 2 in aⁿ − 1 = power of 2 in (a − 1) + power of 2 in (a + 1) + power of 2 in n − 1.
For a = 3, n = 100 = 2² × 25: 1 + 2 + 2 − 1 = 4.
So 2⁴ = 16 divides 3¹⁰⁰ − 1, but 32 does not.
Check by factoring: 3¹⁰⁰ − 1 = (3²⁵ − 1)(3²⁵ + 1)(3⁵⁰ + 1); the brackets contribute 2, 4 and 2 → 2⁴.
How many four-digit numbers are divisible by 7 and end in the digit 3?
Ending in 3 and divisible by 7 → N ≡ 63 (mod 70) (63 is the first such number).
Four-digit values: 1,043, 1,113, …, 9,933 → (9,933 − 1,043)/70 + 1 = 128.
How many ordered pairs of natural numbers (x, y) satisfy 1/x + 1/y = 1/6?
Multiply out: 6y + 6x = xy → xy − 6x − 6y + 36 = 36 → (x − 6)(y − 6) = 36.
Both brackets must be positive divisors of 36, which has 9 divisors → 9 ordered pairs (e.g. (7, 42), (12, 12), (42, 7)).
What is the sum of all the factors of 1,800 that are multiples of 10?
1,800 = 2³ × 3² × 5². A factor that is a multiple of 10 is 10 × (a factor of 180).
180 = 2² × 3² × 5: sum of factors = (1 + 2 + 4)(1 + 3 + 9)(1 + 5) = 7 × 13 × 6 = 546.
Required sum = 10 × 546 = 5,460.
How many numbers from 1 to 100 can NOT be written as the difference of two perfect squares of integers?
a² − b² = (a − b)(a + b); the two brackets have the same parity.
So the difference is either odd or a multiple of 4 – it can never be 2 more than a multiple of 4 (2, 6, 10, …).
Every odd number and every multiple of 4 works, so the exceptions from 1 to 100 are 2, 6, …, 98 → 25 numbers.
In how many ways can 84 be written as a sum of two or more consecutive natural numbers?
Rule: the number of ways to write N as a sum of two or more consecutive natural numbers = the number of odd divisors of N greater than 1.
84 = 2² × 3 × 7 → odd divisors 3, 7 and 21 → 3 ways.
They are 27 + 28 + 29 (3 terms), 9 + 10 + … + 15 (7 terms) and 7 + 8 + … + 14 (8 terms).
What is the smallest natural number whose digits add up to 25?
Use as few digits as possible (two digits give at most 18, so three digits are needed) and put the largest digits at the end.
Last two digits 9 and 9 give 18; the first digit must be 25 − 18 = 7 → 799.
What is the greatest integer that divides n5 − n for every integer n?
n⁵ − n = n(n − 1)(n + 1)(n² + 1).
It contains three consecutive integers → divisible by 2 and 3; by Fermat, n⁵ ≡ n (mod 5) → divisible by 5.
So 30 always divides it, and n = 2 gives 30 itself, so nothing larger works.
Timed online tests with instant scores and explanations.