
A square of n units by n units is divided into \[{n^2}\] squares each of area 1 sq. unit. Let \[\dfrac{{{n^2}\left( {n + k} \right)}}{m}\]be the number of ways in which 4 points (out of \[{\left( {n + 1} \right)^2}\]vertices of the squares) can be chosen so that they form the vertices of a square. Find \[k + m\]?
Answer
137.1k+ views
Hint: No. of squares in a grid of \[n \times n\] is given by = \[{1^2}\;\;\; + {2^2} + {3^2} + ...... + {n^2} = \dfrac{{n(n + 1)(2n + 1)}}{6}\]
For example if \[n = 4\]
No. of squares of 1 sq. unit \[ = {4^2} = 16\]
No. of squares of 2 sq. unit \[ = {3^2} = 9\]
No. of squares of 3 sq. unit \[ = {2^2} = 4\]
No. of squares of 4 sq. unit \[ = {1^2} = 1\]
∴ Total no. of squares \[ = 1 + 4 + 9 + 16 = 30\

Complete step-by-step answer:
Given number of ways in which 4 points (out of \[{\left( {n + 1} \right)^2}\]vertices of the squares) can be chosen so that they form the vertices of a square = \[\dfrac{{{n^2}\left( {n + k} \right)}}{m}\] Eqn (i)
Now we know that total no. of squares in a grid =\[{1^2}\;\;\; + {2^2} + {3^2} + ...... + {n^2} = \dfrac{{n(n + 1)(2n + 1)}}{6}\]
Let us take \[N1 = \dfrac{{n(n + 1)(2n + 1)}}{6}\]
Now suppose n is even,
And if we select 4 points from the \[n \times n\]grid
Then,
No. of squares of area \[\;\dfrac{{{n^2}}}{2}\] square units \[ = {1^2}\]
No. of squares of area \[\dfrac{{{{(n - 2)}^2}}}{2}\;\] square units \[ = {3^2}\]

No. of squares of area \[\dfrac{{{2^2}}}{2}\;\] square units \[ = {(n - 1)^2}\]
Then total no. of squares that can be made (apart from N1) if we select 4 points will be:
\[N2 = {1^2} + {3^2} + {5^2} + ... + {(n - 1)^2} = \;\dfrac{{n(n - 1)(n + 1)}}{6}\]
Similarly, if n is odd then,
No. of squares of area \[\;\dfrac{{{{(n - 1)}^2}}}{2}\] square units \[ = {2^2}\]
No. of squares of area \[\dfrac{{{{(n - 3)}^2}}}{2}\;\] square units \[ = {4^2}\]
.
.
.
No. of squares of area \[\dfrac{{{2^2}}}{2}\;\] square units \[ = {(n - 1)^2}\]
Then again total no. of squares that can be made (apart from N1) if we select 4 points will be:
\[N2 = {2^2} + {4^2} + {6^2} + ... + {(n - 1)^2} = \;\dfrac{{n(n - 1)(n + 1)}}{6}\]

∴Value of N2 doesn’t change whether n is even or odd,
Hence
\[\begin{gathered}
Total{\text{ }}no.{\text{ }}of{\text{ }}squares{\text{ }}formed{\text{ }}which{\text{ }}can{\text{ }}be{\text{ }}obtained{\text{ }}by{\text{ }}taking\;4\;points{\text{ }}out{\text{ }}of\;{(n + 1)^2}\;points\; = N1 + N2 = \\
\Rightarrow \dfrac{{n(n + 1)(2n + 1)}}{6} + \dfrac{{n(n - 1)(n + 1)}}{6}\; = \;\dfrac{{{n^2}(n + 1)}}{2} \\
\end{gathered} \]
Now equation above with eqn (i)
We get \[k = 1\] and \[m = 2\]
Hence \[k + m = 3\], which is the required answer.
Note: In this question, we are selecting only 4 points. More no. of squares can be formed due to intersection of lines if we select 3 points for example,

For example if \[n = 4\]
No. of squares of 1 sq. unit \[ = {4^2} = 16\]
No. of squares of 2 sq. unit \[ = {3^2} = 9\]
No. of squares of 3 sq. unit \[ = {2^2} = 4\]
No. of squares of 4 sq. unit \[ = {1^2} = 1\]
∴ Total no. of squares \[ = 1 + 4 + 9 + 16 = 30\

Complete step-by-step answer:
Given number of ways in which 4 points (out of \[{\left( {n + 1} \right)^2}\]vertices of the squares) can be chosen so that they form the vertices of a square = \[\dfrac{{{n^2}\left( {n + k} \right)}}{m}\] Eqn (i)
Now we know that total no. of squares in a grid =\[{1^2}\;\;\; + {2^2} + {3^2} + ...... + {n^2} = \dfrac{{n(n + 1)(2n + 1)}}{6}\]
Let us take \[N1 = \dfrac{{n(n + 1)(2n + 1)}}{6}\]
Now suppose n is even,
And if we select 4 points from the \[n \times n\]grid
Then,
No. of squares of area \[\;\dfrac{{{n^2}}}{2}\] square units \[ = {1^2}\]
No. of squares of area \[\dfrac{{{{(n - 2)}^2}}}{2}\;\] square units \[ = {3^2}\]

No. of squares of area \[\dfrac{{{2^2}}}{2}\;\] square units \[ = {(n - 1)^2}\]
Then total no. of squares that can be made (apart from N1) if we select 4 points will be:
\[N2 = {1^2} + {3^2} + {5^2} + ... + {(n - 1)^2} = \;\dfrac{{n(n - 1)(n + 1)}}{6}\]
Similarly, if n is odd then,
No. of squares of area \[\;\dfrac{{{{(n - 1)}^2}}}{2}\] square units \[ = {2^2}\]
No. of squares of area \[\dfrac{{{{(n - 3)}^2}}}{2}\;\] square units \[ = {4^2}\]
.
.
.
No. of squares of area \[\dfrac{{{2^2}}}{2}\;\] square units \[ = {(n - 1)^2}\]
Then again total no. of squares that can be made (apart from N1) if we select 4 points will be:
\[N2 = {2^2} + {4^2} + {6^2} + ... + {(n - 1)^2} = \;\dfrac{{n(n - 1)(n + 1)}}{6}\]

∴Value of N2 doesn’t change whether n is even or odd,
Hence
\[\begin{gathered}
Total{\text{ }}no.{\text{ }}of{\text{ }}squares{\text{ }}formed{\text{ }}which{\text{ }}can{\text{ }}be{\text{ }}obtained{\text{ }}by{\text{ }}taking\;4\;points{\text{ }}out{\text{ }}of\;{(n + 1)^2}\;points\; = N1 + N2 = \\
\Rightarrow \dfrac{{n(n + 1)(2n + 1)}}{6} + \dfrac{{n(n - 1)(n + 1)}}{6}\; = \;\dfrac{{{n^2}(n + 1)}}{2} \\
\end{gathered} \]
Now equation above with eqn (i)
We get \[k = 1\] and \[m = 2\]
Hence \[k + m = 3\], which is the required answer.
Note: In this question, we are selecting only 4 points. More no. of squares can be formed due to intersection of lines if we select 3 points for example,

Recently Updated Pages
Difference Between Petrol and Diesel Engine: JEE Main 2024

Difference Between LCD and LED: JEE Main 2025

Online JEE (Main+Adv.) 2023 Repeater course for Class 12 - Aakrosh Vedantu

Boron Family for IIT JEE | Properties and Facts of Boron JEE Chemistry

Difference Between Frequency Modulation and Amplitude Modulation: JEE Main 2024

Government College of Engineering Pune 2023

Trending doubts
JEE Main 2025 Session 2: Application Form (Out), Exam Dates (Released), Eligibility, & More

JEE Main Syllabus 2025 (Updated)

JEE Main Marks Vs Percentile Vs Rank 2025: Calculate Percentile Using Marks

JEE Mains 2025 Cutoff: Expected and Category-Wise Qualifying Marks for NITs, IIITs, and GFTIs

Raoult's Law with Examples

JEE Main 2025 Question Papers: January Session (22, 23, 24, 28, 29) - All Papers, Answer Keys & Analysis in One Place

Other Pages
NCERT Solutions for Class 9 Maths Chapter 11 Surface Area and Volume

NCERT Solutions for Class 9 Maths Chapter 11 Surface Areas And Volumes Ex 11.3

NCERT Solutions for Class 9 Maths Chapter 9 Circles

NCERT Solutions for Class 9 Maths Chapter 12 Statistics

NCERT Solutions for Class 9 Maths Chapter 10 Heron'S Formula

NCERT Solutions for Class 9 Maths In Hindi Chapter 1 Number System
