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

Mathematics, question 18

From KVPY 2020 · Streams SB/SX

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 solutionTry it first, then open this to check your working.
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)

Practise this topic

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

full papers
153
questions
13,073
worked solutions
13,054

Sit a paper tonight. See exactly where you stand.

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