CS Atlas GATE 2027
PDS course
0 / 103 complete

PDS/Phase 7 · Integration & Final Test

Chapter review L0.2 · Item 8 of 103

Math toolkit

Read at your own pace. Try the questions before opening the answers.

On this page

ACompressed recap

🧾

Powers of 2 grow by doubling: 2^10^ = 1024 (K), 2^20^ (M), 2^30^ (G). log₂ x is the power of 2 that gives x; logs turn products into sums and powers into products. ⌊x⌋ rounds down, ⌈x⌉ up. Halving n to 1 takes ⌊log₂ n⌋ steps, doubling 1 to at least n takes ⌈log₂ n⌉, and labelling n things needs ⌈log₂ n⌉ bits.

Sums: 1 + … + n = n(n + 1)/2; 1 + 2 + … + 2^n^ = 2^n+1^ − 1; halving sums stay below 2n. Counting: sum rule, product rule, n!, ordered choices n!/(n − k)!, unordered nCr, pairs nC2, subsets 2^n^.

BMerged rule card

0.2.1 Powers of 2 and logarithms; floor and ceiling

  • 2^10^ = 1024 (K), 2^20^ ≈ 10^6^ (M), 2^30^ ≈ 10^9^ (G).
  • 2^a^·2^b^ = 2^a+b^; 2^a^/2^b^ = 2^a−b^; (2^a^)^b^ = 2^ab^.
  • log₂ x = the power of 2 that gives x; log₂ 1 = 0.
  • log(ab) = log a + log b; log(a^k^) = k log a; logb x = log₂ x / log₂ b.
  • ⌊x⌋ round down, ⌈x⌉ round up; ⌈a/b⌉ = ⌊(a + b − 1)/b⌋ for positive whole a, b.
  • Halvings from n to 1 = ⌊log₂ n⌋; doublings from 1 to ≥ n = ⌈log₂ n⌉; bits for n labels = ⌈log₂ n⌉.

0.2.2 Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

  • Σ i (i = 1 to n) = n(n + 1)/2; 1 + … + (n − 1) = n(n − 1)/2.
  • a + … + b = (b − a + 1)(a + b)/2.
  • Σ i² = n(n + 1)(2n + 1)/6.
  • 1 + 2 + … + 2^n^ = 2^n+1^ − 1; 1 + r + … + r^n^ = (r^n+1^ − 1)/(r − 1).
  • n + n/2 + n/4 + … < 2n.
  • Sum rule (or) add; product rule (and then) multiply.
  • n! orders; ordered k of n: n!/(n − k)!; unordered: nCr = n!/(k!(n − k)!); pairs nC2; subsets 2^n^.

CInterleaved GATE-style questions

Q1NAT1 markLogs

What is log₂ 4096?

Numerical answer: ________

Q2NAT1 markFloor

How many times can 1000 be halved (dropping fractions) before it reaches 1?

Numerical answer: ________

Q3MCQ1 markLogs

log₈ 512 equals:

  • (A) 9
  • (B) 1/3
  • (C) 3
  • (D) 64

Q4NAT2 marksSeries

What is 20 + 21 + … + 80?

Numerical answer: ________

Q5NAT1 markDoubling

A server log doubles in size every hour, starting at 1 MB in hour 1. What is the total written over the first 10 hours, in MB?

Numerical answer: ________

Q6MCQ2 marksCounting

How many different 4-digit PINs use only the digits 1–6 with no digit repeated?

  • (A) 1296
  • (B) 360
  • (C) 24
  • (D) 15

Q7MSQ1 markFloor and ceiling

For n = 64, which are equal to 6?

  • (A) ⌊log₂ n⌋
  • (B) ⌈log₂ (n + 1)⌉
  • (C) ⌈log₂ n⌉
  • (D) log₂ n

Q8NAT2 marksPattern

For each i from 1 to 10 you do i × i steps. How many steps in total?

Numerical answer: ________

Q9MCQ1 markCounting

How many subsets does a set of 10 elements have?

  • (A) 100
  • (B) 10
  • (C) 1024
  • (D) 3628800

DAnswer Vault

Answer Vault

Try the questions first. Open when you are ready to check.

Q1 Answer: 121 mark

2^12^ = 4096.

Re-read: Lesson 0.2.1 — Powers of 2 and logarithms; floor and ceiling

Q2 Answer: 91 mark

1000 → 500 → 250 → 125 → 62 → 31 → 15 → 7 → 3 → 1: 9 = ⌊log₂ 1000⌋.

Re-read: Lesson 0.2.1 — Powers of 2 and logarithms; floor and ceiling

Q3 Answer: (C)1 mark

Change of base: log₂ 512 / log₂ 8 = 9 / 3 = 3 (and 8³ = 512).

  • (A) is wrong: That is log₂ 512.
  • (B) is wrong: Inverted.
  • (D) is wrong: That is 512/8.

Re-read: Lesson 0.2.1 — Powers of 2 and logarithms; floor and ceiling

Q4 Answer: 30502 marks

61 terms × average 50 = 3050.

Re-read: Lesson 0.2.2 — Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

Q5 Answer: 10231 mark

1 + 2 + … + 2⁹ = 2¹⁰ − 1 = 1023.

Re-read: Lesson 0.2.2 — Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

Q6 Answer: (B)2 marks

Ordered choice of 4 from 6: 6 × 5 × 4 × 3 = 360.

  • (A) is wrong: That allows repeats (6⁴).
  • (C) is wrong: That is 4!.
  • (D) is wrong: That ignores order (6C4).

Re-read: Lesson 0.2.2 — Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

Q7 Answer: (A) (C) (D)1 mark

64 is a power of 2, so all three logs are 6; but ⌈log₂ 65⌉ = 7.

  • (B) is wrong: 65 needs 7 bits: ⌈log₂ 65⌉ = 7.

Re-read: Lesson 0.2.1 — Powers of 2 and logarithms; floor and ceiling

Q8 Answer: 3852 marks

1² + … + 10² = 10 × 11 × 21 / 6 = 385.

Re-read: Lesson 0.2.2 — Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

Q9 Answer: (C)1 mark

Each element is in or out: 2¹⁰ = 1024.

  • (A) is wrong: 10² is not it.
  • (B) is wrong: Not the number of subsets.
  • (D) is wrong: That is 10!.

Re-read: Lesson 0.2.2 — Sums of series (1+2+…+n, 1+2+4+…+2ⁿ); basic counting

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.