Square is a special case of repeated multiplication. In Sanskrit, square is referred as Varga. The literal meaning of Varga is rows or troops (of similar things).Referring to the work done by ancient Indian Mathematicians, lots of references for different methods of calculating squares is available. Some of the earlier works include contribution of Aryabhata in Aryabhatiyam (499 AD) [1], Bhaskara I in (628 AD) [2], Mahavira in Ganita-sarasangrahaa (850 AD) [3], Bhaskara II in Lilavati (1150 AD) [4], Tirthaji ant et al. [5], Sridhara in Patiganita (750 AD) [6] and Narayan Pandita in Ganitakaumudi (1356) [7].
Referring to Sulva Sutras (800 BC or much before that upto 3200 BC), Vedanga Jyotisa (1350 BC) of Lagadha and Aryabhatiya (499 AD) of Aryabhata are some of the initial references for the work done for computation of square. In these works, explicit references of calculation of Square is not mentioned because it was considered too elementary to be part of geometry or astronomy. Some of the initial references for calculation of square is available in Aryabhatiyam [1], which quotes that a square figure is of four equal sides(and the number representing its area) are called varga.
The product of these two equal quantities is also called varga.
To add, as the calculation of square root were mentioned, so it was assumed that the concept of calculation of square was clearly known. Going through the work of Brahmagupta, definite rules for calculating square is available in Brahmasphutasiddhanta [2]. Brahmagupta quotes 3 methods of calculating square. The initial method for calculating square is quoted as
Another method quoted by Brahmagupta can be understood as -The product of the sum and the difference of the number (to be squared) and an assumed number plus the square of the assumed number gives square. As long as you square, so long also, you double. As long as you multiply, so long also, you square. Three methods of calculating square has been clearly discussed by Mahavira(850 AD) in Ganitasarasamgraha [3]. The first method can be defined as- Having squared the last digit, multiply the rest by the digits by twice the last, which is moved forward (by one place). Then moving the remaining digits to continue the same operation for calculating square. As quoted by Mahavira, the multiplication of two equal quantities; or the multiplication of the two quantities obtained (from the given quantity) by the subtraction(therefrom) and the addition of any chosen quantity, together with the addition of the square of that chosen quantity(to that product) or the sum of a series in arithmetic progression, of which 1 is the first term, 2 is common difference, and the number of terms wherein is that(of which the square is) required: gives rise to the (required ) square.
Third method quoted by Mahavira is stated as- The square of numbers consisting of two or more places is (equal to) the sum of the squares of all the numbers(in all the places) combined with twice the product of those(numbers ) taken (two at a time) in order. Get the square of the last figure(in the number, the order of counting the figures being from the right to the left), and then multiply this last (figure),after it ids doubled and pushed on(to the right by one notational place), by (the figured found in)the remaining places. Each of the remaining figures (in the number) is to be pushed on(by one place) and then dealt with similarly.
Referring to Lilavati by Bhaskara II [4], three methods for calculating squares has been discussed. The product of a number with itself is called its square.
To square a number-first write the square of the extreme left hand digit on its top. Then multiply the next digit by the double of first digit and write the result on the top. Next multiply the third digit by the double of the first digit and write the result on the top. In this way, arrive at the units place. Next cross the first digit and shift the number so formed one place to the right. Then repeat the same procedure. Finally add all the products written at the top and the sum is the required square.
The second method is
Split the given number into two parts. To the sum of the squares of the two parts, add twice the product of the two parts.
The third method is -Add and subtract a suitable number from the given number. Take the product of the two numbers thus obtained and add the square of the suitable number chosen above. The result is the required square.
And on the basis of the methods of finding squares, find the squares of 9, 14, 297 and 100005.
Looking into the approach used in Vedic Mathematics for calculation of Square, various Sutras as quoted by Swami Bharati Krishna Tirathji Maharaj [5] are available for calculation. In this subsection of the paper, we present the various Sutras which will bring deeper idea for the main aims of this paper.
The meaning of this sutra is “One more than the previous one”. This sutra can be applied for calculating squares of numbers ending with 5. For example 85, 985, 65 etc. The details of the calculation is depicted in Instance 1.
LHS = 7 × (7 + 1) = 7 × 8 = 56
RHS = 52 = 25
LHS/RHS
56/25
Answer = 5625.
The meaning of this sutra is “By addition and subtraction”. This sutra can be applied for calculating squares of numbers either one above or below base value. For example 101, 999, 401, 899, 601, 801 etc. The details of the calculation is depicted in Instance 2.
The given number 399 and 401 is close to 400.
3992 = 4002 − 400 − 399 = 159201
4012 = 4002 + 400 + 401 = 160801.
This approach can be applied for calculating squares of any number. The details of the calculation is depicted in Instance 3.
42|2 * 4 * 9|92 + 2 * 4 * 1|2 * 9 * 1|12
16|72|81 + 8|18|1
16|72|89|18|1
16|72|89 + 1|8|1
16|72 + 9|0|8|1
16 + 8|1|0|8|1
24|1|0|8|1
Answer = 241081.
The meaning of this sutra is “All from 9, last from 10”. This method can be used for squaring values near base value. The details of the calculation is depicted in Instance-4.
As this value is close to 100, it can be written as
99 − 1/01 * 01 98/01 Answer = 9801
The method presented in this paper draws inspiration from the Vedic Sutras discussed above and tries to come off with the limitations. Like Ekadhikena Purvena Sutra, our proposed method splits the calculation hence simplifying the steps. Moreover, it comes off the limitation of Ekadhikena Purvena, where it can be applied only for squaring the numbers ending with 5 but our approach can be applied for calculating squares of any number. Like Nikhilam Navatascharmam Dashatah, our method splits calculation into LHS and RHS and also takes reference of the series value calculation for LHS. However, our approach can be applied for calculation of square of number consisting of any number of digits unlike Nikhilam Navatascharmam Dashatah which can be applied only for values close to base value. Like Duplex, our method splits the values for calculating squares and can be applied for calculating squares of any number. However, when dealing for bigger values, the calculation steps involved in Duplex becomes complex. This shortcoming is handled by our method, where the square is calculated only for partial value.
In this paper, we are presenting a novel approach for calculation of square which can be considered as an extension of the existing methods and reduces the number of steps of calculation. This approach can be applied to any number. The methodology for the finding squares is as follows:
Consider any number P for square calculation with n positions
Calculate length L= length of number P. Identify the range value of P in terms of ones position and locate the position of the given number. Split the calculations into LHS and RHS. RHS part = Take last two positions (i.e. LHS part = It consists of two segments i.e. Initial value and Series Value
6.1 Initial value = 6.2 Series values Series value = SV = Calculate first term and difference for the series. 6.2.1 First term = 6.2.2 Difference = 6.2.3 LHS part = IV + SV. Merge together LHS|RHS. Keep only right most two places in RHS and remaining will be taken as carry and added to LHS.
On the basis of the proposed approach, applications are discussed for a clear understanding. Application 1 for 3 digit number, Application 2 for 4 digit number, Application 3 for 5 digit number, Application 4 for 6 digit number is solved using the proposed methodology. The value of n depends on the number of digits in the given value.
9982(3
Let
Position values
Length of number
Range of values= 990 to 999
Position of digit =9
RHS = (
Here either Duplex method/Nikhilam Navtascharma can be used for calculating square.
Use Duplex method for calculating (98)2
(98)2 =
SV calculation
First Term = Difference = Position of digit = 9 in the given range. IV = 992 LHS part = RHS part = 9604, LHS| RHS 9864|9604 = 9864 + 96|04 = 996|004 Thus 9982 = 996004.
The summarizing the details of calculation of series of values from 140 to 160 is presented in Table 1.
Table summarizes calculation for series of values using proposed methodology.
Value | LHS (Initial Value)( |
LHS(Series Value) ( |
LHS= Initial Value+Series Value | RHS ( |
Answer |
---|---|---|---|---|---|
1402 | 10 * 142 = 196 | 19616 = 180 | 402 = 1600 | 180|1600 = 196|00 | |
1412 | 10 * 142 = 196 | 196 − 14 = 182 | 412 = 1681 | 182|1681 = 198|81 | |
1422 | 10 * 142 = 196 | 196 − 12 = 184 | 422 = 1764 | 184|1764 = 201|64 | |
1432 | 10 * 142 = 196 | 196 − 10 = 186 | 432 = 1849 | 186|1849 = 204|49 | |
1442 | 10 * 142 = 196 | 196 − 8 = 188 | 442 = 1936 | 188|1936 = 207|36 | |
1452 | 10 * 142 = 196 | 196 − 6 = 190 | 452 = 2025 | 190|2025 = 210|25 | |
1462 | 10 * 142 = 196 | 196 − 4 = 192 | 462 = 2116 | 192|2116 = 213|16 | |
1472 | 10 * 142 = 196 | 196 − 2 = 194 | 472 = 2209 | 194|2209 = 216|09 | |
1482 | 10 * 142 = 196 | 196 − 0 = 196 | 482 = 2304 | 196|2304 = 219|04 | |
1492 | 10 * 142 = 196 | 196 + 2 = 198 | 492 = 2401 | 198|2401 = 222|01 | |
1502 | 10 * 152 = 225 | 22525 = 200 | 502 = 2500 | 200|2500 = 225|00 | |
1512 | 10 * 152 = 225 | 225 − 23 = 202 | 512 = 2601 | 202|2601 = 228|01 | |
1522 | 10 * 152 = 225 | 225 − 21 = 204 | 522 = 2704 | 204|2704 = 231|04 | |
1532 | 10 * 152 = 225 | 225 − 19 = 206 | 532 = 2809 | 206|2809 = 234|09 | |
1542 | 10 * 152 = 225 | 225 − 17 = 208 | 542 = 2916 | 208|2916 = 237|16 | |
1552 | 10 * 152 = 225 | 225 − 15 = 210 | 552 = 3025 | 210|3025 = 240|25 | |
1562 | 10 * 152 = 225 | 225 − 13 = 212 | 562 = 3136 | 212|3136 = 243|36 | |
1572 | 10 * 152 = 225 | 225 − 11 = 214 | 572 = 3249 | 214|3249 = 246|49 | |
1582 | 10 * 152 = 225 | 225 − 9 = 216 | 582 = 3364 | 216|3364 = 249|64 | |
1592 | 10 * 152 = 225 | 225 − 7 = 218 | 592 = 3481 | 218|3481 = 252|81 | |
1602 | 162 = 256 | −62 = −36 | 256 − 36 = 220 | 602 = 3600 | 220|3600 = 256|00 |
10422 (4 digit)
Let
Position of values
Length of number
Range of value = 1040 to 1049
Position of digit = 3rd in the given range.
RHS = (
Use Duplex method for calculating (42)2
(42)2 =
42|2 * 4 * 2|22 = 16|16|4 = 1764.
LHS = IV + SV
IV = (
1042 =
1|2 * 1 * 0|02 + 2 * 1 * 4|2 * 0 * 4|42 = 10816.
SV calculation
First Term = Difference = Range of value = 1040 to 1049. Position of digit = 3rd in the given range. LHS part = IV + SV = 10816 + 24 = 10840 RHS part = 1764 LHS|RHS 10840|1764 = 10840 + 17|64 = 10857|64 Thus 10422 = 1085764.
618792 (5 digit)
Let
Position of values
Length of number
Range of value = 61870 to 61879
Position of digit= 10th in the given range.
RHS = (
Use Duplex method for calculating (79)2
(79)2 =
72|2 * 7 * 9|92 = 49|126|81 = 6241.
LHS = IV + SV
IV = (
61872 =
36|2 * 1 * 6|12 + 2 * 6 * 8|2(1 * 8 + 6 * 7)|82 + 2 * 1 * 7|2 * 8 * 7|72 = 38278969.
SV calculation:
First Term =
Difference =
Position of digit= 10th in the given range.
LHS part = IV + SV = 38278969 + 11075 = 38290044.
RHS part = 6241
LHS|RHS
38290044|6241 = 38290044 + 62|41 = 38290106|41
Thus 618792 = 3829010641.
4444442 (6 digit)
Let
Position of values
Length of number
Range of value = 444440 to 444449
Position of digit= 5th in the given range.
RHS = (
Use Duplex method for calculating (44)2
(44)2 =
42|2 * 4 * 4|42 = 16|32|16 = 1936.
LHS = +IV + SV
IV = (
444442 =
SV calculation
First Term = Difference =d= 2 × Range of value = 444440 to 444449 Position of digit= 5th in the given range. LHS part = IV + SV = 1975269136 + 35536 = 1975304672. RHS part = 1936 LHS|RHS 1975304672|1936 = 1975304672 + 19|36 Thus 4444442 = 197530469136.
Our proposed method can be extended for calculation of squares of bigger values and nested calculations can be implemented to make calculation easier.
618792 (5 digit Nested Calculation)
61872 + (−49 + 2 × 618)|792
= 61872 + 11075|6241
= 6182 + 790|872 + 11075|6241 (Calculate 61872)
= 612 + 95|182 + 790|872 + 11075|6241 (Calculate 6182 )
= 3721 + 95|324 + 790|7569 + 11075|6241
= 3816|324 + 790|7569 + 11075|6241 (Add overflow from RHS to LHS)
= 3819|24 + 790|7569 + 11075|6241
= 381924 + 790|7569 + 11075|6241
= 382714|7569 + 11075|6241 (Add overflow from RHS to LHS)
= 382789|69 + 11075|6241
= 38278969 + 11075|6241
= 38290044|6241 (Add overflow from RHS to LHS)
= 38290106|41.
Thus 618792 = 3829010641.
All the applications discussed above present a unique approach. The method presented in this paper draws inspiration from the Vedic Sutras discussed above and tries to come off with the limitations. Like Ekadhikena Purvena Sutra, our proposed method splits the calculation hence simplifying the steps. Moreover, it comes off the limitation of Ekadhikena Purvena, where it can be applied only for squaring the numbers ending with 5 but our approach can be applied for calculating squares of any number. Like Nikhilam Navatascharmam Dashatah, our method splits calculation into LHS and RHS and also takes reference of the series value calculation for LHS. However, our approach can be applied for calculation of square of number consisting of any number of digits unlike Nikhilam Navatascharmam Dashatah which can be applied only for values close to base value. Like Duplex, our method splits the values for calculating squares and can be applied for calculating squares of any number. However, when dealing for bigger values, the calculation steps involved in Duplex becomes complex. This shortcoming is handled by our method, where the square is calculated only for partial value.
In this paper, we have summarized the different methods of calculating square quoted by various ancient Indian mathematicians. Besides that, we have also summarized the various Sutras for calculating squares as quoted by P. Swami Bharati Krishna Tirathji Maharaj. Moreover, we have presented a novel computational approach for calculating square by taking into consideration the various sutras. An effort has been done to remove the limitations of the Sutras in our proposed method. Our method splits the calculation into LHS and RHS which makes the computation simpler. Moreover, nested calculations can be applied for handling squares of bigger values. New methods of square can be explored based on the existing work. Moreover, the same can be analysed so as to understand its application for other arithmetic operations.
The authors hereby declare that there is no conflict of interests regarding the publication of this paper.
There is no funding regarding the publication of this paper.
K.A. and A.G.-Methodology, Supervision, Validation, Conceptualization, Formal analysis, D.A.-Writing-Original Draft, Writing-Review Editing. All authors read and approved the final submitted version of this manuscript.
The authors deeply appreciate the reviewers for their helpful and constructive suggestions, which can help further improve this paper.
All data that support the findings of this study are included within the article.
The authors declare that they have not used Artificial Intelligence (AI) tools in the creation of this article.