Skip to content
Top 100 Most Asked QuestionsLaunching soon20% off the yearly Test Series pass
Klay
Start Learning

LearnQuantitative AptitudeNumber System

02.08 · Number System

Integral Solutions

Elite lesson11 formulas10 questions

On the syllabus of

Elite lesson29 minEnglish

Formulas

At a glance 11 formulas

  1. 1When solutions existax+by=cax + by = c has integer solutions only when gcd⁡(a,b)\gcd(a, b) divides cc: 6x+9y=206x + 9y = 20 has none, since 3 does not divide 20.
  2. 2Find one, then stepx=x0+bt,y=y0−atx = x_0 + bt,\quad y = y_0 - atfor ax+by=c, gcd⁡(a,b)=1\text{for } ax + by = c,\ \gcd(a, b) = 1
  3. 3Use a remainderWork modulo one coefficient: in 7x+5y=1007x + 5y = 100 every other term is a multiple of 5, so 7x7x is too, and xx is a multiple of 5.
  4. 4Count within limitsWrite xx and yy in terms of tt, turn each limit into a range of tt, and count the values of tt that meet every limit at once.
  5. 5Positive partsx1+x2+⋯+xk=n: (n−1k−1)x_1 + x_2 + \cdots + x_k = n:\ \dbinom{n-1}{k-1}
  6. 6Non-negative partsxi≥0: (n+k−1k−1)x_i \ge 0:\ \dbinom{n+k-1}{k-1}
  7. 7Lower limits firstFor x≥3x \ge 3, hand out the 3 first: put x=x′+3x = x' + 3, take 3 off the total, then count with x′≥0x' \ge 0.
  8. 8Less than or equalTurn x+y+z≤nx + y + z \le n into an equation with a slack s=n−(x+y+z)≥0s = n - (x + y + z) \ge 0, then count x+y+z+s=nx + y + z + s = n.
  9. 9Product equationsRewrite xy+ax+by=cxy + ax + by = c as (x+b)(y+a)=c+ab(x + b)(y + a) = c + ab, then count factor pairs, including negative ones that keep xx and yy in range.
  10. 10Reciprocal sums1x+1y=1n  ⟺  (x−n)(y−n)=n2\tfrac{1}{x} + \tfrac{1}{y} = \tfrac{1}{n} \iff (x-n)(y-n) = n^{2}positive ordered pairs=divisors of n2\text{positive ordered pairs} = \text{divisors of } n^{2}
  11. 11Difference of squaresx2−y2=Nx^{2} - y^{2} = N means (x−y)(x+y)=N(x - y)(x + y) = N: each factor pair d<Ndd < \tfrac{N}{d} with both odd or both even gives one positive pair.

Test yourself

10 questions · 3 easy · 4 medium · 3 hard

Tap an option to answer. The first tap counts.

  1. Q1Easy

    How many ordered pairs of positive integers (x,y)(x, y) satisfy x+y=12x + y = 12?

    Correct answer11

    Why

    Fix xx and yy follows: xx can be 1, 2, 3 and so on up to 11.

    x=12x = 12 would make y=0y = 0, which is not positive.

    So there are 11 pairs.

  2. Q2Easy

    Which of these equations has no solution in integers xx and yy?

    Correct answer6x+15y=406x + 15y = 40

    Why

    Integer solutions need gcd⁡(a,b)\gcd(a, b) to divide the right-hand side.

    gcd⁡(6,15)=3\gcd(6, 15) = 3 and 3 does not divide 40, while 2 divides 18, 1 divides 1 and 3 divides 51.

    So 6x+15y=406x + 15y = 40 has no integer solution.

8 more questions: 1 easy, 4 medium, 3 hard

Sign in free to see all ten and get your score. No payment, no card.

More practice: IPMAT, IIMB, FEAT, MUSAT, AAA, MSAT and Christ BBA previous year questions

Logos and exam names belong to their owners. Klay Prep is not affiliated with them.