Skip to content
dronacharya.ai
KVPY 2020MathematicsSingle correct+1 / -0.25

KVPY 2020 Maths Q18: Number systems

From the KVPY 2020 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.

Let M=230−215+1M = 2^{30}-2^{15}+1, and M2M^2 be expressed in base 2. The number of 1's in this base 2 representation of M2M^2 is

Choose one option

Answer and worked solution

Try it yourself first, then check your working against this.

Official answerB

Worked solution

Expanding, M2=260+230+1−246+231−216=(260−246)+(231+230−216)+1M^2 = 2^{60}+2^{30}+1-2^{46}+2^{31}-2^{16} = (2^{60}-2^{46})+(2^{31}+2^{30}-2^{16})+1. In binary:

  • 260−2462^{60}-2^{46} is bits 46-59 (14 ones);
  • 231+230−216=231+(230−216)2^{31}+2^{30}-2^{16} = 2^{31}+(2^{30}-2^{16}) is bit 31 plus bits 16-29 (1 + 14 ones);
  • +1+1 is bit 0.

Total: 14+1+14+1=3014+1+14+1 = 30.

(B)

Concepts used: binary representation, expanding a square

Practise this topic

Every past question tagged to the same part of the syllabus, with solutions.

Similar questions from other papers

Past questions on the same topic (Number systems), each with a worked solution.

full papers
217
questions
18,571
worked solutions
18,550

Sit a paper tonight. See exactly where you stand.

Timed, in the real format, and marked the moment you submit.