NDA Maths · Binary Numbers
Binary Representation & Number Theory
A small grab-bag the NDA files under Binary Numbers: representing a decimal number in binary (and counting its bits), plus a couple of pure number-theory recall items — modular remainders by cycling, and the sum-of-odd-numbers perfect-square fact.
Why this matters
Three PYQs sit here. One is a direct decimal-to-binary representation; the other two are number-theory one-liners (a remainder-by-cycling and a perfect-square recognition) that happen to be grouped with binary in the syllabus. They reward two reflexes you can memorise: powers repeat in a short cycle modulo a number, and 1 + 3 + 5 + ... + (2n − 1) = n².
Concept 1 of 2: Representing a Number in Binary & Counting Its Bits
Definition
A decimal number needs exactly bits in binary when it lies in the range
- A number that is exactly is the smallest -bit number: a 1 followed by zeros.
- A number that is exactly is the largest -bit number: ones.
Bit count of N
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 1 · Binary Numbers · Binary Representation and Number Theory
Watch the digit COUNT in the options
Concept 2 of 2: Number-Theory One-Liners — Remainder Cycles & Sum of Odd Numbers
Definition
Remainder by cycling: the remainders of modulo a fixed number repeat with some period . Find the cycle by computing remainders until they repeat, then reduce the exponent modulo : if the exponent leaves remainder on division by , then has the same remainder as . Sum of the first n odd numbers:
Sum of first n odd numbers
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 2 · Binary Numbers · Binary Representation and Number Theory
Reduce the exponent by the CYCLE length, not the modulus
Sum of odd numbers is a PERFECT SQUARE
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (2)
- Representing a Number in Binary & Counting Its Bits
Bit count of N
- Number-Theory One-Liners — Remainder Cycles & Sum of Odd Numbers
Sum of first n odd numbers
Watch out for (3)
- Watch the digit COUNT in the options→ Representing a Number in Binary & Counting Its Bits
- Reduce the exponent by the CYCLE length, not the modulus→ Number-Theory One-Liners — Remainder Cycles & Sum of Odd Numbers
- Sum of odd numbers is a PERFECT SQUARE→ Number-Theory One-Liners — Remainder Cycles & Sum of Odd Numbers
Test yourself on a real paper
Sit a past NDA paper, timed and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.