Acceso abierto

Extension of Vedic Mathematics Sutras for calculation of Square


Cite

Introduction

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.

vargassamacaturasrah phalanca sadrsadvayasya samvargah

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

raserunam dvigunam vahutaragunamunakrtiyutam vargah

which means combining the product, twice the digit in the less(lowest) place into the several others(digits) with its (i.e. of the digit in the lowest place) square (repeatedly) gives the square.

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.

samadvighatah krtirucyatetha sthapyontyavom dvigunantyanighnah svasvoparisthacca tathapare nkastyaktvantyamutsarya punasca rasim

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

khandaddhayasyabhihatirdvinighni tatkhandavagaikyayuta krtirva istonayugrasivadhah krtih syadistasya vargena samanvito va

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.

sakhe navanam ca caturdasanam bruhii trihinasya satatrayasya pamcottarasyapyayutasya varga janasi cedvargavicaramargam

And on the basis of the methods of finding squares, find the squares of 9, 14, 297 and 100005.

Preliminaries

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.

Ekadhikena Purvena sutra

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.

Instance-1: 752

LHS = 7 × (7 + 1) = 7 × 8 = 56

RHS = 52 = 25

LHS/RHS

56/25

Answer = 5625.

Sankalana Vyavakalanabhyam sutra

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.

Instance-2: 3992 and 4012

The given number 399 and 401 is close to 400.

3992 = 4002 − 400 − 399 = 159201

4012 = 4002 + 400 + 401 = 160801.

Duplex Method/Dvandvayoga sutra

This approach can be applied for calculating squares of any number. The details of the calculation is depicted in Instance 3.

Instance-3: 4912

D(4)|D(49)|D(491)|D(91)|D(1)

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.

Nikhilam Navtascharmam Dashtah

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.

Instance-4: 992

As this value is close to 100, it can be written as

99 − 1/01 * 01

98/01

Answer = 9801

Proposed methodology

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 P=pnpn1pn2pn3pn4pn5p3p2p1p0. P = {p_n}{p_{n - 1}}{p_{n - 2}}{p_{n - 3}}{p_{n - 4}}{p_{n - 5}} \cdots {p_3}{p_2}{p_1}{p_0}.

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. p1 p0 from right and calculate the square using Nikhilam Navatascharmam Dashatah, Ekadhikena Purvena or Duplex Method).

LHS part = It consists of two segments i.e. Initial value and Series Value

6.1 Initial value = IV = (pn pn−1 pn−2 pn−3 pn−4 pn−5 . . . p3 p2 p1)2

6.2 Series values Series value = SV = Calculate first term and difference for the series.

6.2.1 First term = a0 = p12 p_1^2

6.2.2 Difference = d = 2 × (pn pn−1 pn−2 pn−3 pn−4 pn−5 . . . p3 p2)

6.2.3 an = −a0 + (n − 1)d

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.

Applications

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.

Application 1.

9982(3digit)

Let P = 998,

Position values p2 = 9, p1 = 9, p0 = 8,

Length of number L = 3

Range of values= 990 to 999

Position of digit =9th in the given range

RHS = (p1 p0)2 = (98)2

Here either Duplex method/Nikhilam Navtascharma can be used for calculating square.

Use Duplex method for calculating (98)2

(98)2 = D(9)|D(99)|D(9) = 92|2 * 9 * 9|92=9801

SV calculation

First Term = a0 = p12 p_1^2 = 92 = 81

Difference = d = 2 × (pn,, p3, p2) = 2 × 9 = 18

Position of digit = 9 in the given range.

an = −a0 + (n − 1)d

a9 = −081 + 8 × 18 = 63

IV = 992

LHS part = IV + SV = 980163 = 9864

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)(p2 p1)2 LHS(Series Value) (a0 + nd) LHS= Initial Value+Series Value RHS (p1 p0)2 Answer

1402 10 * 142 = 196 a0 = −42 = −16 19616 = 180 402 = 1600 180|1600 = 196|00
1412 10 * 142 = 196 a0 + d = −42 + 2 = −14 196 − 14 = 182 412 = 1681 182|1681 = 198|81
1422 10 * 142 = 196 a0 + 2d = −42 + 2 * 2 = −12 196 − 12 = 184 422 = 1764 184|1764 = 201|64
1432 10 * 142 = 196 a0 + 3d = −42 + 3 * 2 = −10 196 − 10 = 186 432 = 1849 186|1849 = 204|49
1442 10 * 142 = 196 a0 + 4d = −42 + 4 * 2 = −8 196 − 8 = 188 442 = 1936 188|1936 = 207|36
1452 10 * 142 = 196 a0 + 5d = −42 + 5 * 2 = −6 196 − 6 = 190 452 = 2025 190|2025 = 210|25
1462 10 * 142 = 196 a0 + 6d = −42 + 6 * 2 = −4 196 − 4 = 192 462 = 2116 192|2116 = 213|16
1472 10 * 142 = 196 a0 + 7d = −42 + 7 * 2 = −2 196 − 2 = 194 472 = 2209 194|2209 = 216|09
1482 10 * 142 = 196 a0 + 8d = −42 + 8 * 2 = 0 196 − 0 = 196 482 = 2304 196|2304 = 219|04
1492 10 * 142 = 196 a0 + 9d = −42 + 9 * 2 = 2 196 + 2 = 198 492 = 2401 198|2401 = 222|01

1502 10 * 152 = 225 a0 = −52 = −25 22525 = 200 502 = 2500 200|2500 = 225|00
1512 10 * 152 = 225 a0 + d = −52 + 2 = −23 225 − 23 = 202 512 = 2601 202|2601 = 228|01
1522 10 * 152 = 225 a0 + 2d = −52 + 2 * 2 = −21 225 − 21 = 204 522 = 2704 204|2704 = 231|04
1532 10 * 152 = 225 a0 + 3d = −52 + 3 * 2 = −19 225 − 19 = 206 532 = 2809 206|2809 = 234|09
1542 10 * 152 = 225 a0 + 4d = −52 + 5 * 2 = −17 225 − 17 = 208 542 = 2916 208|2916 = 237|16
1552 10 * 152 = 225 a0 + 5d = −52 + 5 * 2 = −15 225 − 15 = 210 552 = 3025 210|3025 = 240|25
1562 10 * 152 = 225 a0 + 6d = −52 + 6 * 2 = −13 225 − 13 = 212 562 = 3136 212|3136 = 243|36
1572 10 * 152 = 225 a0 + 7d = −52 + 7 * 2 = −11 225 − 11 = 214 572 = 3249 214|3249 = 246|49
1582 10 * 152 = 225 a0 + 8d = −52 + 8 * 2 = −9 225 − 9 = 216 582 = 3364 216|3364 = 249|64
1592 10 * 152 = 225 a0 + 9d = −52 + 9 * 2 = −7 225 − 7 = 218 592 = 3481 218|3481 = 252|81

1602 162 = 256 −62 = −36 256 − 36 = 220 602 = 3600 220|3600 = 256|00
Application 2.

10422 (4 digit)

Let P = 1042

Position of values p3 = 1, p2 = 0, p1 = 4, p0 = 2

Length of number L = 4

Range of value = 1040 to 1049

Position of digit = 3rd in the given range.

RHS = (p1 p0)2 = (42)2

Use Duplex method for calculating (42)2

(42)2 = D(4)|D(42)|D(2)

42|2 * 4 * 2|22 = 16|16|4 = 1764.

LHS = IV + SV

IV = (p3 p2 p1)2 = 1042

1042 = D(1)|D(10)|D(104)|D(04)|D(4)

1|2 * 1 * 0|02 + 2 * 1 * 4|2 * 0 * 4|42 = 10816.

SV calculation

First Term = a0 = p12 p_1^2 = 42 = 16

Difference = d = 2 × (p3 p2) = 2 × 10 = 20.

Range of value = 1040 to 1049.

Position of digit = 3rd in the given range.

an = −a0 + (n − 1)d

a3 = −16 + 2 × 20 = 24

LHS part = IV + SV = 10816 + 24 = 10840

RHS part = 1764

LHS|RHS

10840|1764 = 10840 + 17|64 = 10857|64

Thus 10422 = 1085764.

Application 3.

618792 (5 digit)

LetP = 61879

Position of values p4 = 6, p3 = 1, p2 = 8, p1 = 7, p0 = 9

Length of number L = 5

Range of value = 61870 to 61879

Position of digit= 10th in the given range.

RHS = (p1 p0)2 = (79)2

Use Duplex method for calculating (79)2

(79)2 = D(7)|D(79)|D(9)

72|2 * 7 * 9|92 = 49|126|81 = 6241.

LHS = IV + SV

IV = (p4 p3 p2 p1)2 = 61872

61872 = D(6)|D(61)|D(618)|D(6187)|D(187)|D(87)|D(7)

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 = a0 = p12 p_1^2 = 72 = 49

Difference = d = 2 × (p4 p3 p2) = 2 × 618 = 1236

Position of digit= 10th in the given range.

an = −a0 + (n − 1)d

a10 = −49 + 9 × 1236 = 11075

LHS part = IV + SV = 38278969 + 11075 = 38290044.

RHS part = 6241

LHS|RHS

38290044|6241 = 38290044 + 62|41 = 38290106|41

Thus 618792 = 3829010641.

Application 4.

4444442 (6 digit)

Let P = 444444

Position of values p5 = p4 = p3 = p2 = p1 = p0 = 4

Length of number L = 6

Range of value = 444440 to 444449

Position of digit= 5th in the given range.

RHS = (p1 p0)2 = (44)2

Use Duplex method for calculating (44)2

(44)2 = D(4)|D(44)|D(4)

42|2 * 4 * 4|42 = 16|32|16 = 1936.

LHS = +IV + SV

IV = (p4 p3 p2 p1)2 = 444442

444442 = D(4)|D(44)|D(444)|D(4444)|D(44444)|D(4444)|D(444)|D(44)|D(4) = 1975269136.

SV calculation

First Term = a0 = p12 p_1^2 = 42 = 16.

Difference =d= 2 ×p4 p3 p2 = 2 × 4444 = 8888.

Range of value = 444440 to 444449

Position of digit= 5th in the given range.

an = −a0 + (n − 1)d, a5 = −16 + 4 × 8888 = 35536.

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.

Application 5.

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.

Conclusion

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.

Declarations
Conflict of interests:

The authors hereby declare that there is no conflict of interests regarding the publication of this paper.

Funding:

There is no funding regarding the publication of this paper.

Author's contributions:

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.

Acknowledgement:

The authors deeply appreciate the reviewers for their helpful and constructive suggestions, which can help further improve this paper.

Availability of data and materials:

All data that support the findings of this study are included within the article.

Using of AI tools:

The authors declare that they have not used Artificial Intelligence (AI) tools in the creation of this article.

eISSN:
2956-7068
Idioma:
Inglés
Calendario de la edición:
2 veces al año
Temas de la revista:
Computer Sciences, other, Engineering, Introductions and Overviews, Mathematics, General Mathematics, Physics