EZEZ CGL

Formulas › Quant › Number System

Number System

About 0.6 questions a shift · 52 past questions · 13 formulas and methods

Number to add for a perfect square

Square roots and perfect squares · seen in 1 past questions
n2≤N<(n+1)2 ⇒ add (n+1)2−Nn^2\le N<(n+1)^2\ \Rightarrow\ \text{add }(n+1)^2-N
SHORTCUT
Locate NN between two consecutive squares; subtract from the upper one.
USE WHEN
  • N is not already a perfect square (else add 0)N \text{ is not already a perfect square (else add }0)
  • n=⌊N⌋n=\lfloor\sqrt N\rfloor
Why it works, and common traps
  1. Find the square root's integer part: n=⌊N⌋n=\lfloor\sqrt N\rfloor, so n2≤N<(n+1)2n^2\le N<(n+1)^2.
  2. The next perfect square above NN is (n+1)2(n+1)^2.
  3. The gap is (n+1)2−N(n+1)^2-N, the smallest number to add.
  • Trap: Subtracting from the lower square: 2378 - 2304 = 74 is the number to subtract, not add.
  • Trap: Rounding N\sqrt N to nearest and using that square: can give a negative 'add'.

Divisibility of a^n - b^n

Divisibility · seen in 1 past questions
(a−b)∣an−bn ∀n; (a+b)∣an−bn for even n; (a+b)∣an+bn for odd n(a-b)\mid a^n-b^n \ \forall n;\ (a+b)\mid a^n-b^n \text{ for even } n;\ (a+b)\mid a^n+b^n \text{ for odd } n
SHORTCUT
xn−1x^n - 1 is divisible by x−1x - 1; for even nn also by x+1x + 1 and by x2−1x^2 - 1.
USE WHEN
  • n a positive integer; the ’even’ and ’odd’ parts need that parityn \text{ a positive integer; the 'even' and 'odd' parts need that parity}
Why it works, and common traps
  1. an−bn=(a−b)(an−1+an−2b+⋯+bn−1)a^n-b^n = (a-b)(a^{n-1}+a^{n-2}b+\dots+b^{n-1}), so a−ba-b always divides.
  2. For odd nn replace bb by −b-b: an+bn=(a+b)(an−1−an−2b+⋯+bn−1)a^n+b^n = (a+b)(a^{n-1}-a^{n-2}b+\dots+b^{n-1}).
  3. For even n=2kn = 2k: an−bn=(ak−bk)(ak+bk)a^n-b^n = (a^k-b^k)(a^k+b^k), and a2−b2=(a−b)(a+b)a^2-b^2 = (a-b)(a+b) shows (a+b)(a+b) divides (a2)j−(b2)j(a^2)^j-(b^2)^j.
  • Trap: Using a+ba+b with odd nn on an−bna^n - b^n: 23−1=72^3-1 = 7 is not divisible by 3.
  • Trap: Choosing 65 (=64+1= 64+1): a+ba+b divides an+bna^n+b^n for odd nn, not an−1a^n-1.
  • Trap: Choosing 8 because the base is 8: 8m−18^m-1 is odd.

Comparing fractions

Fractions · seen in 3 past questions
ab>cd  ⟺  ad>bc (b,d>0)\frac ab > \frac cd \iff ad > bc\ (b,d>0)
SHORTCUT
Same numerator: smaller denominator wins. Same gap to 1 (b−gb\frac{b-g}{b}): larger denominator wins, e.g. 7990>3344\frac{79}{90} > \frac{33}{44}.
USE WHEN
  • b,d>0b, d > 0
Why it works, and common traps
  1. Multiply both sides of ab>cd\frac ab > \frac cd by bdbd.
  2. bd>0bd > 0, so the inequality keeps its direction: ad>bcad > bc.
  • Trap: Cross-multiplying into the wrong side: compare a×da\times d with b×cb\times c, numerator of each with the other's denominator.
  • Trap: Calling the fraction with the larger numerator or denominator larger (6/53 has a bigger denominator but is tiny).
  • Trap: Cross-multiplying with a negative denominator without flipping the sign.

Divisibility by 11

Divisibility · seen in 6 past questions
11∣N  ⟺  (sum of odd-place digits)−(sum of even-place digits)≡0(mod11)11\mid N \iff (\text{sum of odd-place digits}) - (\text{sum of even-place digits}) \equiv 0 \pmod{11}
SHORTCUT
Counted from the units digit, the alternating sum is also N mod 11N \bmod 11 (add 11 if it is negative).
Why it works, and common traps
  1. 10≡−1(mod11)10 \equiv -1 \pmod{11}, so 10k≡(−1)k10^k \equiv (-1)^k.
  2. N=∑dk10k≡d0−d1+d2−…(mod11)N = \sum d_k10^k \equiv d_0 - d_1 + d_2 - \dots \pmod{11}, places counted from the units digit.
  3. So 11∣N11 \mid N exactly when (odd-place sum) −- (even-place sum) is 0,±11,±22,…0, \pm11, \pm22, \dots
  • Trap: Forcing the difference to be 0 only: 11, 22 or a negative multiple also work, so check ±11\pm 11.
  • Trap: Mixing places mid-number (skipping a 0 digit) gives a wrong difference; every digit takes a place.
  • Trap: Using the alternating sum as a remainder counted from the left: for an even number of digits the sign flips.

Divisibility by composite numbers

Divisibility · seen in 10 past questions
If n=ab, gcd⁡(a,b)=1: n∣N  ⟺  a∣N and b∣N (6=2⋅3, 36=4⋅9, 40=8⋅5)\text{If } n=ab,\ \gcd(a,b)=1:\ n\mid N \iff a\mid N \text{ and } b\mid N\ (6=2\cdot3,\ 36=4\cdot9,\ 40=8\cdot5)
SHORTCUT
Split nn into coprime prime-power parts and apply number-system.divisibility-rules to each: 72=8×972 = 8\times9, 88=8×1188 = 8\times11.
USE WHEN
  • gcd⁡(a,b)=1\gcd(a,b)=1
Why it works, and common traps
  1. If ab∣Nab \mid N then a∣Na \mid N and b∣Nb \mid N, always.
  2. Conversely, a∣Na \mid N gives N=akN = ak; b∣akb \mid ak with gcd⁡(a,b)=1\gcd(a,b)=1 forces b∣kb \mid k.
  3. So N=abmN = abm, which is a multiple of abab.
  • Trap: Splitting into non-coprime factors: 24=4×624 = 4\times6 is wrong (1212 passes both but not 24); use 8×38\times3.
  • Trap: Checking only the digit sum for 6 and forgetting the even test.
  • Trap: Answering the largest valid digit (9) when the least is asked.

Divisibility rules (2, 3, 4, 5, 8, 9)

Divisibility · seen in 20 past questions
2/5/10:lastdigit; 4:lasttwodigits; 8:lastthreedigits; 3/9:digitsum; largest n-digit multiple of d=(10n−1)−((10n−1) mod d)2/5/10: last digit;\ 4: last two digits;\ 8: last three digits;\ 3/9: digit sum;\ \text{largest } n\text{-digit multiple of } d=(10^n-1)-((10^n-1)\bmod d)
SHORTCUT
Digit sum gives the remainder too: N mod 9=(digit sum) mod 9N \bmod 9 = (\text{digit sum}) \bmod 9, and the same for 3.
Why it works, and common traps
  1. Write N=10q+uN = 10q + u (uu = units digit). 1010 is a multiple of 2, 5 and 10, so only uu decides those.
  2. Write N=100q+tN = 100q + t (tt = last two digits). 4∣1004 \mid 100, so only tt decides divisibility by 4.
  3. Write N=1000q+hN = 1000q + h (hh = last three digits). 8∣10008 \mid 1000, so only hh decides divisibility by 8.
  4. 10≡1(mod9)10 \equiv 1 \pmod 9, so 10k≡110^k \equiv 1 and N=∑dk10k≡∑dk(mod9)N = \sum d_k10^k \equiv \sum d_k \pmod 9; the same holds mod 3 because 3∣93 \mid 9.
  5. The largest nn-digit number is 10n−110^n-1; dropping its remainder by dd leaves the largest multiple of dd not above it.
  • Trap: Using the digit sum for 4 or 8: 4 and 8 need the last two / three digits, not the digit sum.
  • Trap: Taking 'digit sum divisible by 3' as enough for 6 or 12: 6 also needs an even number (see number-system.divisibility-composite).
  • Trap: Reading the digit sum 40 as the remainder by 9; reduce it again: 40 mod 9 = 4.

LCM and HCF

LCM & HCF · seen in 8 past questions
LCM(a,b)×HCF(a,b)=ab; events repeating every t1,t2 coincide every LCM(t1,t2)\mathrm{LCM}(a,b)\times\mathrm{HCF}(a,b)=ab;\ \text{events repeating every } t_1,t_2 \text{ coincide every } \mathrm{LCM}(t_1,t_2)
SHORTCUT
LCM=abHCF\mathrm{LCM} = \frac{ab}{\mathrm{HCF}}; for lap times, LCM of the lap times gives the first meeting at the start.
USE WHEN
  • the product rule holds for exactly two numbers\text{the product rule holds for exactly two numbers}
Why it works, and common traps
  1. Let h=HCF(a,b)h = \mathrm{HCF}(a,b), a=hxa = hx, b=hyb = hy with gcd⁡(x,y)=1\gcd(x,y) = 1.
  2. The smallest common multiple is hxyhxy, so LCM=hxy\mathrm{LCM} = hxy.
  3. LCM×HCF=hxy⋅h=(hx)(hy)=ab\mathrm{LCM}\times\mathrm{HCF} = hxy\cdot h = (hx)(hy) = ab.
  4. Two events are both on schedule at times that are multiples of t1t_1 and t2t_2; the first is LCM(t1,t2)\mathrm{LCM}(t_1,t_2).
  • Trap: Applying LCM ×\times HCF = product to three numbers: for 2, 4, 6 it gives 24, not 48.
  • Trap: Using HCF (60 s = 1 min) where the events must coincide; that needs LCM.
  • Trap: Using the track length 210 m: meeting at the start depends only on the lap times.

Least n-digit perfect square

Square roots and perfect squares · seen in 1 past questions
least n-digit square=⌈10n−1⌉2\text{least } n\text{-digit square}=\left\lceil\sqrt{10^{n-1}}\right\rceil^2
SHORTCUT
For 6 digits: 100000≈316.2\sqrt{100000}\approx316.2, round up to 317, square it.
USE WHEN
  • n≥1n \ge 1
Why it works, and common traps
  1. The least nn-digit number is 10n−110^{n-1}.
  2. The least perfect square at or above it uses the smallest integer m≥10n−1m\ge\sqrt{10^{n-1}}.
  3. So m=⌈10n−1⌉m=\lceil\sqrt{10^{n-1}}\rceil and the square is m2m^2.
  • Trap: Rounding down to 316: 3162=99856316^2=99856 has only 5 digits.
  • Trap: Using 10n10^n instead of 10n−110^{n-1}: gives the least (n+1)(n+1)-digit square.

Sums of first n naturals, squares, cubes

Series sums · seen in 6 past questions
Σk=n(n+1)2; Σk2=n(n+1)(2n+1)6; Σk3=(n(n+1)2)2\Sigma k=\frac{n(n+1)}2;\ \Sigma k^2=\frac{n(n+1)(2n+1)}6;\ \Sigma k^3=\left(\frac{n(n+1)}2\right)^2
SHORTCUT
Average of 1..n1..n is n+12\frac{n+1}{2}; average of the first nn squares is (n+1)(2n+1)6\frac{(n+1)(2n+1)}{6}.
Why it works, and common traps
  1. Write 1+2+⋯+n1+2+\dots+n forwards and backwards; each column adds to n+1n+1, so twice the sum is n(n+1)n(n+1).
  2. Sum (k+1)3−k3=3k2+3k+1(k+1)^3 - k^3 = 3k^2 + 3k + 1 for k=1..nk = 1..n: the left side telescopes to (n+1)3−1(n+1)^3 - 1.
  3. Solve for Σk2\Sigma k^2: (n+1)3−1−3n(n+1)2−n=3Σk2(n+1)^3 - 1 - 3\frac{n(n+1)}{2} - n = 3\Sigma k^2, giving n(n+1)(2n+1)6\frac{n(n+1)(2n+1)}{6}.
  4. The same telescoping with (k+1)4−k4(k+1)^4 - k^4 gives Σk3=(n(n+1)2)2\Sigma k^3 = \left(\frac{n(n+1)}{2}\right)^2.
  • Trap: Using 2n−12n-1 instead of 2n+12n+1: gives 48×93/6=74448\times93/6 = 744.
  • Trap: Dividing the sum of squares by n+1n+1 instead of nn for the average.
  • Trap: Squaring the sum of naturals for squares: (Σk)2(\Sigma k)^2 is the sum of cubes, not squares.

Number sets

Relationships between numbers · seen in 13 past questions
N⊂W⊂Z⊂Q⊂R\mathbb N\subset\mathbb W\subset\mathbb Z\subset\mathbb Q\subset\mathbb R
SHORTCUT
To test 'both X and Y': the answer is the smaller of the two sets; negatives are never whole, 00 is whole but not natural.
Why it works, and common traps
  1. Natural numbers: 1,2,3,…1,2,3,\dots. Whole numbers add 00.
  2. Integers add the negatives: …,−2,−1,0,1,2,…\dots,-2,-1,0,1,2,\dots.
  3. Rationals are pq\frac pq with p,qp,q integers, q≠0q\ne0; every integer is n1\frac n1.
  4. Reals add the irrationals such as 2\sqrt2 and π\pi.
  5. Each set sits inside the next, so a number belongs to every set from its smallest one outward.
  • Trap: Calling 00 a natural number (it is whole, not natural).
  • Trap: Treating negative integers as whole numbers: −4-4 is excluded.
  • Trap: Calling a recurring decimal irrational: 0.3‾=130.\overline3=\frac13 is rational.

Perfect square test

Square roots and perfect squares · seen in 3 past questions
N=m2  ⟺  every prime in N has an even power;last digit∈{0,1,4,5,6,9}N=m^2\iff \text{every prime in }N\text{ has an even power};\quad \text{last digit}\in\{0,1,4,5,6,9\}
SHORTCUT
Last digit 2, 3, 7 or 8: not a square. Otherwise factorise and check the powers.
USE WHEN
  • N a positive integerN \text{ a positive integer}
  • the last-digit test only rules numbers out; it cannot confirm\text{the last-digit test only rules numbers out; it cannot confirm}
Why it works, and common traps
  1. m2m^2's last digit depends only on mm's last digit: 0,1,4,9,6,5,6,9,4,10,1,4,9,6,5,6,9,4,1 for mm ending in 00 to 99.
  2. So squares never end in 2,3,7,82,3,7,8.
  3. Write m=p1ap2b⋯m=p_1^{a}p_2^{b}\cdots; then m2=p12ap22b⋯m^2=p_1^{2a}p_2^{2b}\cdots, all powers even.
  4. Conversely, all-even powers let you halve each power to get mm.
  • Trap: Reading 'ends in 1, 4, 9...' as sufficient: 29 and 44 end in allowed digits but are not squares.
  • Trap: Counting digits of a prime power wrongly: 23×322^3\times3^2 is not a square (odd power on 2).

Remainder cycles of powers

Remainders · seen in 3 past questions
an mod m repeats with a cycle; reduce n modulo the cycle lengtha^n \bmod m \text{ repeats with a cycle; reduce } n \text{ modulo the cycle length}
SHORTCUT
Write a=km±1a = km \pm 1: then an≡(±1)na^n \equiv (\pm1)^n. Last digits repeat every 4: use n mod 4n \bmod 4 (0 means 4).
USE WHEN
  • gcd⁡(a,m)=1 for a pure cycle from n=0; otherwise the cycle starts after a few terms\gcd(a,m)=1 \text{ for a pure cycle from } n=0;\ \text{otherwise the cycle starts after a few terms}
Why it works, and common traps
  1. an mod ma^n \bmod m takes at most mm values, so some value repeats.
  2. Each term fixes the next (r→ar mod mr \to ar \bmod m), so after the first repeat the values loop.
  3. If the loop has length LL and starts at n=0n=0: an≡an mod La^n \equiv a^{n \bmod L}.
  4. Special case a≡−1(modm)a \equiv -1 \pmod m: cycle 1,m−11, m-1 of length 2, so aeven≡1a^{\text{even}} \equiv 1.
  • Trap: Answering −1-1: a remainder is never negative; −1-1 means m−1m - 1, and here the power is even anyway.
  • Trap: Using n mod L=0n \bmod L = 0 as a0=1a^0 = 1 for last digits: take the 4th term of the cycle instead (e.g. 242^4 ends in 6).
  • Trap: Assuming a pure cycle when gcd⁡(a,m)>1\gcd(a,m) > 1: 2n mod 82^n \bmod 8 is 1,2,4,0,0,…1, 2, 4, 0, 0, \dots

Remainder rules (substitution, divisor factor)

Remainders · seen in 5 past questions
(a⋅b) mod m=(a mod m)(b mod m) mod m; N≡r(modD), d∣D⇒N≡r(modd)(a\cdot b)\bmod m=(a\bmod m)(b\bmod m)\bmod m;\ N\equiv r \pmod D,\ d\mid D \Rightarrow N\equiv r \pmod d
SHORTCUT
Replace every number by its remainder (or by a small negative one, e.g. 17≡−1(mod18)17 \equiv -1 \pmod{18}), work, then reduce once.
USE WHEN
  • d∣D for the second ruled \mid D \text{ for the second rule}
Why it works, and common traps
  1. Write a=pm+raa = pm + r_a, b=qm+rbb = qm + r_b.
  2. ab=m(… )+rarbab = m(\dots) + r_ar_b, so abab and rarbr_ar_b leave the same remainder; ++ and −- work the same way.
  3. N=Dq+rN = Dq + r and d∣Dd \mid D make DqDq a multiple of dd, so N≡r(modd)N \equiv r \pmod d.
  • Trap: Using the rule when d∤Dd \nmid D: 83≡28(mod55)83 \equiv 28 \pmod{55} but 83 mod 10=383 \bmod 10 = 3, not 8.
  • Trap: Stopping at 28 for divisor 11: the result must be reduced below the divisor.
  • Trap: Leaving a negative result: −22 mod 18-22 \bmod 18 is 14, not −4-4.