Exams
Test Series
Previous Year Papers
JEE Main Previous Year Question Paper JEE Advanced Previous Year Papers NEET Previous Year Question Paper CUET Previous Year Papers COMEDK UGET Previous Year Papers UP Polytechnic Previous Year Papers AP POLYCET Previous Year Papers TS POLYCET Previous Year Papers KEAM Previous Year Papers MHT CET Previous Year Papers WB JEE Previous Year Papers GUJCET Previous Year Papers ICAR AIEEA Previous Year Papers CUET PG Previous Year Papers JCECE Previous Year Papers Karnataka PGCET Previous Year Papers NEST Previous Year Papers KCET Previous Year Papers LPUNEST Previous Year Papers AMUEEE Previous Year Papers IISER IAT Previous Year Papers Bihar Diploma DECE-LE Previous Year Papers NPAT Previous Year Papers JMI Entrance Exam Previous Year Papers PGDBA Exam Previous Year Papers AP ECET Previous Year Papers PU CET Previous Year Papers GPAT Previous Year Papers CEED Previous Year Papers AIAPGET Previous Year Papers JKCET Previous Year Papers HPCET Previous Year Papers CG PAT Previous Year Papers SRMJEEE Previous Year Papers BCECE Previous Year Papers AGRICET Previous Year Papers TS PGECET Previous Year Papers MP PAT Previous Year Papers IIT JAM Previous Year Papers CMC Vellore Previous Year Papers ACET Previous Year Papers TS EAMCET Previous Year Papers NATA Previous Year Papers AIIMS MBBS Previous Year Papers BITSAT Previous Year Papers JEXPO Previous Year Papers HITSEEE Previous Year Papers AP EAPCET Previous Year Papers UCEED Previous Year Papers CG PET Previous Year Papers OUAT Previous Year Papers VITEEE Previous Year Papers
Syllabus
JEE Main Syllabus JEE Advanced Syllabus NEET Syllabus CUET Syllabus COMEDK UGET Syllabus UP Polytechnic JEECUP Syllabus AP POLYCET Syllabus TS POLYCET Syllabus KEAM Syllabus MHT CET Syllabus WB JEE Syllabus OJEE Syllabus ICAR AIEEA Syllabus CUET PG Syllabus NID Syllabus JCECE Syllabus Karnataka PGCET Syllabus NEST Syllabus KCET Syllabus UPESEAT EXAM Syllabus LPUNEST Syllabus PUBDET Syllabus AMUEEE Syllabus IISER IAT Syllabus NPAT Syllabus JIPMER Syllabus JMI Entrance Exam Syllabus AAU VET Syllabus PGDBA Exam Syllabus AP ECET Syllabus GCET Syllabus CEPT Syllabus PU CET Syllabus GPAT Syllabus CEED Syllabus AIAPGET Syllabus JKCET Syllabus HPCET Syllabus CG PAT Syllabus BCECE Syllabus AGRICET Syllabus TS PGECET Syllabus BEEE Syllabus MP PAT Syllabus MCAER PG CET Syllabus VITMEE Syllabus IIT JAM Syllabus CMC Vellore Syllabus AIMA UGAT Syllabus AIEED Syllabus ACET Syllabus TS EAMCET Syllabus PGIMER Exam Syllabus NATA Syllabus AFMC Syllabus AIIMS MBBS Syllabus BITSAT Syllabus BVP CET Syllabus JEXPO Syllabus HITSEEE Syllabus AP EAPCET Syllabus GITAM GAT Syllabus UPCATET Syllabus UCEED Syllabus CG PET Syllabus OUAT Syllabus IEMJEE Syllabus VITEEE Syllabus SEED Syllabus MU OET Syllabus
Books
Cut Off
JEE Main Cut Off JEE Advanced Cut Off NEET Cut Off CUET Cut Off COMEDK UGET Cut Off UP Polytechnic JEECUP Cut Off AP POLYCET Cut Off TNEA Cut Off TS POLYCET Cut Off KEAM Cut Off MHT CET Cut Off WB JEE Cut Off ICAR AIEEA Cut Off CUET PG Cut Off NID Cut Off JCECE Cut Off Karnataka PGCET Cut Off NEST Cut Off KCET Cut Off UPESEAT EXAM Cut Off AMUEEE Cut Off IISER IAT Cut Off Bihar Diploma DECE-LE Cut Off JIPMER Cut Off JMI Entrance Exam Cut Off PGDBA Exam Cut Off AP ECET Cut Off GCET Cut Off CEPT Cut Off PU CET Cut Off CEED Cut Off AIAPGET Cut Off JKCET Cut Off HPCET Cut Off CG PAT Cut Off SRMJEEE Cut Off TS PGECET Cut Off BEEE Cut Off MP PAT Cut Off VITMEE Cut Off IIT JAM Cut Off CMC Vellore Cut Off ACET Cut Off TS EAMCET Cut Off PGIMER Exam Cut Off NATA Cut Off AFMC Cut Off AIIMS MBBS Cut Off BITSAT Cut Off BVP CET Cut Off JEXPO Cut Off HITSEEE Cut Off AP EAPCET Cut Off GITAM GAT Cut Off UCEED Cut Off CG PET Cut Off OUAT Cut Off VITEEE Cut Off MU OET Cut Off
Latest Updates
Eligibility
JEE Main Eligibility JEE Advanced Eligibility NEET Eligibility CUET Eligibility COMEDK UGET Eligibility UP Polytechnic JEECUP Eligibility TNEA Eligibility TS POLYCET Eligibility KEAM Eligibility MHT CET Eligibility WB JEE Eligibility OJEE Eligibility ICAR AIEEA Eligibility CUET PG Eligibility NID Eligibility JCECE Eligibility Karnataka PGCET Eligibility NEST Eligibility KCET Eligibility LPUNEST Eligibility PUBDET Eligibility AMUEEE Eligibility IISER IAT Eligibility Bihar Diploma DECE-LE Eligibility NPAT Eligibility JIPMER Eligibility JMI Entrance Exam Eligibility AAU VET Eligibility PGDBA Exam Eligibility AP ECET Eligibility GCET Eligibility CEPT Eligibility PU CET Eligibility GPAT Eligibility CEED Eligibility AIAPGET Eligibility JKCET Eligibility HPCET Eligibility CG PAT Eligibility SRMJEEE Eligibility BCECE Eligibility AGRICET Eligibility TS PGECET Eligibility MP PAT Eligibility MCAER PG CET Eligibility VITMEE Eligibility IIT JAM Eligibility CMC Vellore Eligibility AIMA UGAT Eligibility AIEED Eligibility ACET Eligibility PGIMER Exam Eligibility CENTAC Eligibility NATA Eligibility AFMC Eligibility AIIMS MBBS Eligibility BITSAT Eligibility JEXPO Eligibility HITSEEE Eligibility AP EAPCET Eligibility GITAM GAT Eligibility UPCATET Eligibility UCEED Eligibility CG PET Eligibility OUAT Eligibility IEMJEE Eligibility SEED Eligibility MU OET Eligibility

Ramanujan Magic Square: Definition, Construction & Solved Examples

Last Updated on Jun 23, 2025
Download As PDF
IMPORTANT LINKS

Ramanujan Magic Square is a matrix of numbers in which every row, column and diagonal adds up to the same number. A square with many distinct integers placed in such a way that the sum or total of the numbers is the same in every row, column, and main diagonal, as well as typically on some or all of the other diagonals, is known as a magic square.

Srinivasa Ramanujan had a special affinity toward numbers. A Mathematician without parallel, he made extraordinary contributions to mathematical analysis, number theory, infinite series, and continued fractions. His works have been collected and analyzed throughout the world.

Maths Notes Free PDFs

Topic PDF Link
Class 12 Maths Important Topics Free Notes PDF Download PDF
Class 10, 11 Mathematics Study Notes Download PDF
Most Asked Maths Questions in Exams Download PDF
Increasing and Decreasing Function in Maths Download PDF

What is Ramanujan Magic Square?

In recreational mathematics, a magic square of order n is an arrangement of n2 numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. A normal magic square contains the integers from 1 to n2. The term “magic square” is also sometimes used to refer to any of the various types of word square.

Magic squares may be classified into three types:

(i) Additive magic square (standard magic square): Its elements are arranged in such a way that they add to give a magic sum (S) along rows, columns, and diagonals.

(ii) Multiplicative magic square: Its elements are arranged to multiply, giving a magic product (P) along rows, columns, and diagonals.

(iii) Additive-multiplicative magic square: Its elements are arranged to add and multiply to give S and P, respectively, along rows, columns, and diagonals.

Mathematician Ramanujan created a Magic Square: one of its kind fascinating mathematical object that has a deep and mysterious history that has been so far unmanageable for researchers and mathematicians to decipher. Knowing and learning about this magic square can be helpful and rewarding for students.

Ramanujan magic square is a special kind of magic square that was invented by the Indian mathematician Srinivasa Ramanujan. It is a 3×3 grid in which each of the nine cells contains a number from 1 to 9, and each row, column, and diagonal have the same sum.

The above picture is a 3-by-3 magic square from Ramanujan’s notebook. The elements in the middle row, middle column and each diagonal are in arithmetic progression, and all columns, rows and diagonals add up to 15.

Ramanujan constructed different magic squares of the same size but with different magic constants. For instance, he constructed an even square of 4 × 4 with magic constants equal to 34 and 35. For an odd order, Ramanujan constructed a 5 × 5 square with magic constants equal to 65 and 66. Ramanujan built 7 × 7 squares with magic sums 170 and 175 in two different problems. He

also constructed magic rectangles.


What is Unique about Ramanujan Magic Square?

It is possible to create a Ramanujan magic square by starting with any 3×3 magic square and adding or deleting the same number from each cell. This implies that there are an endless number of Ramanujan magic squares that could exist! It is said that he discovered this method while working on his famous notebook.

There are many things that make this method of creating magic squares unique.

  • Unlike most other methods, it takes a unique approach. Ramanujan’s strategy makes use of geometry rather than algebra or mathematics. This improves its visual attractiveness and makes it simpler to comprehend. Additionally, compared to other techniques, it has the advantage of producing larger magic squares.
  • The way the Ramanujan magic square is put together is another distinctive feature. The majority of other ways to make magic squares employ a predetermined configuration. This indicates that the numbers in the square are set up in a particular order. On the other hand, Ramanujan’s approach makes use of a flexible structure. As a result, the square can be built with greater originality and variety.
  • Last but not least, Ramanujan magic square is special because it can be utilized to make various magic squares. Most other techniques can only produce one kind of magic square. Ramanujan’s technique is significantly more robust and adaptable thanks to this flexibility.

How Ramanujan Magic Square was Constructed

Here’s how one possibility of Ramanujan’s square can be constructed.

The important dates in the life of Srinivasa Ramanujan were compiled from various sources. These dates were taken two digits at a time, representing either the date of the month or the month or the first/second half of the four-digit year. As an example, Ramanujan’s date-of-birth 22-12-1887 is taken as four separate entries as 22 12 18 and 87. In short, Ramanujan’s entire life history is reproduced here, from his birth to till date in Ramanujan style. In India, the day December 22’ has been declared as National Mathematics Day.

Since the sum of the birth date is 139, we need to make sure that all the other rows and columns are 139. Also, the sum of all the main diagonals is 139.

But now follow several other points of interest:

The sum of the four corner elements of the square is the same number (note the numbers in the cells coloured red), i.e., 22 + 87 + 11 + 19 = 139.

The sums of the numbers in the two sets of like-coloured cells are again the same number (139).

The sums of the numbers in the two sets of like coloured cells here are yet again the same number (139).

The sum of the numbers in the four central cells is 139.

The sums of the numbers in these like-coloured 2 x 2 blocks are all 139.

And so also in these two coloured 2 × 2 blocks.

Test Series
131.7k Students
NCERT XI-XII Physics Foundation Pack Mock Test
323 TOTAL TESTS | 5 Free Tests
  • 3 Live Test
  • 163 Class XI Chapter Tests
  • 157 Class XII Chapter Tests

Get Started

Pros and Cons of Ramanujan Magic Square

The Pros and Cons of Ramanujan Magic Square are as follows:

Here are the advantages of Ramanujan Magic Square

  • Compared to other approaches, it is easy to understand and more aesthetically pleasing.
  • Additionally, it is more adaptable, promoting innovation in the design of the square.
  • It can be utilized to make many kinds of magic squares.

Here are the disadvantages of Ramanujan Magic Square

  • It is not a widely utilized procedure, so it is applied sparingly.
  • It could be more challenging to describe to others because it is less well-known.
  • It can be difficult to extend to higher dimensions because it depends on geometry.

Applications of Ramanujan Magic Square

Here are some practical applications of Ramanujan’s Magic Square.

  • It could be used in a wide spectrum of fixed resource allocation over 2-D topographical entities.
  • It is used in Birkhoff — von Neumann decomposition, Quantum permutation matrices etc.

Formula of Ramanujan Magic Square

Here’s the formula of Ramanujan Magic Square

The numbers in the first row should be as follows:

The number in the second row should be as follows:

The number in the second row should be as follows:

The number in the second row should be as follows:

Hence, Ramanujan’s Magic square is of the form:

Here, DD = Date of birth.

MM= Month of birth.

CC= Century of birth.

YY= Year of birth.

Important Points on Ramanujan Magic Square

Here are some of the key points of Ramanujan Magic Square

  • The sum of each row or column or diagonal is the same.
  • The sum of the four corner elements of the square is the same number.
  • Since 2012, National Mathematics Day is celebrated on December 22 in memory of one of the finest and most legendary of mathematicians, Srinivasa Ramanujan.

Solved Examples on Ramanujan Magic Square

Here are some solved examples of the Ramanujan Magic Square for you to prepare for your exam.

Example 1: Rohan’s Birthday Is on 02 April 1995. Draw a Rohan’s Magic Square.

Solution: Since Rohan’s birthday is on 02 April 1995.

We have DD = 02

MM = 04

CC = 19

YY = 95

Using the concept of Ramanujan’s Magic square, we have,

The numbers in the first row should be:

02, 04, 19, 95

The numbers in the second row should be:

95 + 1 = 96, 19 – 1 = 18, 04 – 3 = 01, 02 + 3 = 05

The numbers in the third row should be:

04 – 2 = 02, 02 + 2 = 4, 95 + 2 = 97, 19 – 2 = 17

The numbers in the fourth row should be:

19 + 1 = 20, 95 – 1 = 94, 02 + 1 = 03, 04 – 1 = 03

Therefore, the magic square is:

Example 2: Complete the following Ramanujan Magic Square.

Solution: From the first row, it is observed that:

DD = 08

MM = 10

CC = 19

YY = 90

The numbers in the second row should be as follows:

YY + 1. CC – 1, MM – 3, DD + 3, that is,

91, 18, 07, 11. Therefore, the missing numbers in the second row are 91 and 11.

The numbers in the third row should be as follows:

MM – 2, DD + 2, YY + 2, CC – 2, that is,

08, 10, 92, 17. Therefore, the missing numbers in the third row are 08 and 92.

The numbers in the fourth row should be as follows:

CC + 1, YY – 1, DD + 1, MM – 1, that is

20, 89, 09, 09. Therefore, the missing numbers in the third row are 89 and 09.

Hope this article on Ramanujan Magic Square was informative. Get some practice of the same on our free Testbook App. Download Now!

If you are checking Ramanujan Magic Square article, check related maths articles:

Surface area of a cylinder

Area of Sphere

Surface Area of Cube

Surface Area of a Cone

Surface Area of a Cuboid

Area Between Two Curves

Important Links
NEET Exam
NEET Previous Year Question Papers NEET Mock Test NEET Syllabus
CUET Exam
CUET Previous Year Question Papers CUET Mock Test CUET Syllabus
JEE Main Exam
JEE Main Previous Year Question Papers JEE Main Mock Test JEE Main Syllabus
JEE Advanced Exam
JEE Advanced Previous Year Question Papers JEE Advanced Mock Test JEE Advanced Syllabus

More Articles for Maths

FAQs For Ramanujan Magic Square

manujan magic square is special because it can be utilized to make various magic squares. Most other techniques can only produce one kind of magic square. Ramanujan's technique is significantly more robust and adaptable thanks to this flexibility.

Ramanujan magic square is a special kind of magic square that was invented by the Indian mathematician Srinivasa Ramanujan.

It could be used in a wide spectrum of fixed resource allocation over 2-D topographical entities. It is used in Birkhoff — von Neumann decomposition, Quantum permutation matrices etc.

A square with many distinct integers placed in such a way that the sum or total of the numbers is the same in every row, column, and main diagonal, as well as typically on some or all of the other diagonals, is known as a magic square.

The oldest magic square of order four was found inscribed in Khajuraho, India dating to the eleventh or twelfth century. This magic square is also known as the diabolic or panmagic square, where, in addition to the rows, columns, and diagonals the broken diagonals also have the same sum.

The original square is often featured in mathematical museums, books, and educational resources that explore Ramanujan’s contributions.

The first row of Ramanujan’s Magic Square - 22, 12, 18, 87 - represents his birthdate: 22 December 1887.

The magic constant in Ramanujan’s original magic square is 139, the sum of numbers in each row, column, and diagonal.

Yes! You can personalize a 4x4 magic square using your own birthdate or other meaningful numbers by following a specific pattern and rules similar to Ramanujan’s.

It is believed that Ramanujan created the square to showcase mathematical beauty using numbers from his own life, highlighting his deep understanding of number patterns and symmetry.

Report An Error