Sunteți pe pagina 1din 77

Vedic Math

Presentation
John L. Lehet John L. Lehet
jlehetmathmaverick.com
http://www.mathmaverick.com http://www.mathmaverick.com
check out my mental math apps Ior android devices at
practice and master mental math the Jedic wav
http://www.mathmaverick.com/viewMMIndex.php?vid997 http://www.mathmaverick.com/viewMMIndex.php?vid997
Jeda means Knowledge
Vedic Math
Jedic Maths over 2 years old
Rediscovered in 2
th
century by Bharati Krishna
Comprised of Sutras and sub-Sutras
which are aphoristic formulas which are aphoristic formulas
A system of Mental Mathematics
Recommended Reference Book
Jedic Mathematics - 1eacher's Manual - Elementary Level
Kenneth R. Williams
ISBA: 81-28-2774-
Completing the Whole
Vedic Math
lessons
The Ten Point Circle
Using Subtraction to Simplv Addition
sutras
Bv Completion or Non-Completion
Bv the Deficiencv
Using Subtraction to Simplv Addition
Using Addition to Simplifv Subtraction
Simplifving Addition bv Groups of 10
10
1
2
8
9
20
11
12
19
18
The Ten Point Circle
3
4
5
6
7
13
14
15
17
16
10
1
2
8
9
Bv Completion or
Non-Completion
Iive number pairs
1 9
2 8
3 7
4 6
5 5
Use number pairs to
make groups oI
'10 when adding
numbers
The Ten Point Circle
3
4
5
6
7
example.
24 26 50
Below a Multiple oI Ten
Bv the Deficiencv
View a number as to how close it is to the next multiple oI ten
49 is close to 50 and is 1 short
38 is close to 40 and is 2 short
59 4 63
59 is close to 60 and is 1 below it
Practice
This
Its easv to
add :eros' 59 is close to 60 and is 1 below it
So, 59 4 is 1 below 60 4
59 4 60 4 1 64 1 63
38 24 62
38 is close to 40 and is 2 below it
So, 38 24 is 2 below 40 24
38 24 40 24 2 64 2 62
This
Process
Mentallv'
add :eros'
Make use
of this'
Sum to Ten
The Ten Point Circle illustrates the pairs oI numbers
whose sum is 10
There are eight unique groups oI three numbers that sum to 10
1 2 7 10 is an example
+ + + +
1 2 7 10 10
Can you Iind the other seven groups oI three numbers summing to 10?
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
1 2 7 10
10
10
10
10
10
10
10
Adding a List oI Numbers
Look Ior number pairs that make a multiple oI 10
7 6 3 4
The list can be sequentially added as Iollows
76 is 13,
133 is 16
And 164 is 20
Bv Completion or
Non-Completion
OR
7
8
OR
You could look Ior number pairs that make
multiples oI 10
73 is 10,
64 is 10
1010 is 20
48 16 61 32
8
9
2
3
5
3
1
2
3
7
9
10
10
10
10
10
59
Subtracting Near a Base
When subtracting a number close to a multiple oI 10,
Just subtract Irom the multiple oI 10 and correct the answer
accordingly
53 29
29 is close to 30, just 1 lower,
So subtract 30 Irom 53 making 23
Then add 1 to make 24
53 29 53 (30 1) 53 30 1 23 1 24
Bv Completion or
Non-Completion
(53 30) 1

(23) 1
24

mentallv
53 29 53 (30 1) 53 30 1 23 1 24
This process can be done mentally
45 18
45 18 45 (20 2) 45 - 20 2 25 2 27
Doubling and Halving
Vedic Math
lessons
Mentallv Multiplving and Dividing bv 2
Mentallv Multiplving and Dividing bv 4 and 8
sutras
Proportionatelv
Mentallv Multiplving and Dividing bv 4 and 8
Mentallv Multiplving and Dividing bv 5, 50 and 25
Using Number Relationships to Simplifv a Problem
Doubling
Adding a number to itselI is called Doubling
2 3
2 3
Proportionatelv
4 6 2 2 3 3
Mentally, we can double each column and then combine results
5 8
5 8
double 50 and add double 8
5 8
1 1 6
Grouping columns may simply the problem
2 6 3
2 6 3
5 2 6
double 260 and add double 3
100 16 116
520 6 526
Practice Doubling Mentally
Doubling
Practice how to approach a problem
Proportionatelv
1 4 7 2
Mentally, the problem can be 'broken into two problems
7 3 6
7 3 6
736 700 36 736 700 36
double each of these and combine
1400 72 1472
Practice Doubling Mentally
Multiplying by 4 and 8
Doubling can be used to multiply by 4
just double the number twice
Proportionatelv
35 x 4 (35 x 2 ) x 2
so,
35 x 4 70 x 2 140
similarlv,
163 x 4 326 x 2 652 163 x 4 326 x 2 652
Doubling can be used to multiply by 8
just double the number three times
35 x 8 ( (35 x 2 ) x 2 ) x 2
so,
35 x 8 70 x 4 140 x 2 280
similarlv,
163 x 8 326 x 4 652 x 2 1304
Halving
Halving is the opposite oI Doubling
Proportionatelv
Half of 42 is 21
fust half each column
Half of 5 is 28
fust half 50 and half 6 then add
Mentally, the problem can be 'broken into two problems
736 700 36
half each of these and combine
350 18 38
Practice Halving Mentally
Dividing by 4 and 8
Proportionatelv
Halving can be used to divide by 4
just half the number twice
72 4 (72 2 ) 2
so,
72 4 36 2 18
similarlv,
164 4 82 2 41 164 4 82 2 41
Halving can be used to divide by 8
just half the number three times
72 8 ( (72 2 ) 2 ) 2
so,
72 8 (36 2) 2 18 2 9
similarlv,
504 8 252 4 126 4 63
Multiplying by 5, 50 and 25
Proportionatelv
Multiply by 5 by multiplying by 10 and halving the result
26 x 5 ( 26 x 10 ) 2 260 2 130
Multiply by 50 by multiplying by 100 and halI the result
Its easv to multiplv bv 10 and 100' Make use of this'
Multiply by 50 by multiplying by 100 and halI the result
43 x 50 ( 43 x 100 ) 2 4300 2 2150
Multiply by 25 by multiplying by 100 and halI the result twice
68 x 25 ( 68 x 100 ) 4 6800 4 3400 2 1700
Dividing by 5, 50 and 25
Proportionatelv
Divide by 5 by doubling and dividing the result by 10
320 5 ( 2 x 320 ) 10 640 10 64
Divide by 50 by doubling and dividing the result by 100
Its easv to divide bv 10 and 100' Make use of this'
Divide by 50 by doubling and dividing the result by 100
850 50 ( 850 x 2 ) 100 1700 100 17
Divide by 25 by doubling twice and dividing the result by 100
325 25 ( 325 x 4 ) 100 1300 100 13
Proportionately
Proportionatelv
We know certain number Iacts well, such as 8 x 7 56
But given the problem 16 x 7,
we mav use long multiplication,
Instead, proportionately allows us to use
our number facts along with halving and doubling
16 x 7 2 x (8 x 7) 2 x (56) 112 16 x 7 2 x (8 x 7) 2 x (56) 112
all oI which can be done mentally!
similarlv,
18 x 14 (2x9) x (2x7) 4 x (9x7) 4 x 63 2 x 126 252
Digit Sums
Vedic Math
lessons
Definition of Digit Sum
Nine Point Circle
'Casting Out` 9s
sutras
When the Samuccava is the Same it is Zero
'Casting Out` 9s
Checking with Digit Sums
Digit Sums
A Digit Sum is the sum oI all oI the digits oI a number
and is Iound by adding all oI the digits oI a number
If the sum of the digits is greater than 9, then
sum the digits of the result again until the result is less than 10
The Digit Sum oI 35 is 35 8
The Digit Sum oI 142 is 142 7
sum the digits of the result again until the result is less than 10
The Digit Sum oI 57 is 57 12 12 3
So the Digit Sum oI 57 is 3
The Digit Sum oI 687 is 687 21 21 3
So the Digit Sum oI 687 is 3
Keep finding the Digit Sum of the result until it's less than 1
and 9 are equivalent!
~9, so sum the digits again
1
0
1
2
7
8
9
2
0
1
1
1
9
1
8
1
7
1
6
N
i
n
e

P
o
i
n
t

C
i
r
c
l
e
2
5
2
6
2
7
N
u
m
b
e
r
s

a
t

e
a
c
h
p
o
i
n
t

o
n

t
h
e

c
i
r
c
l
e

h
a
v
e

t
h
e
s
a
m
e

d
i
g
i
t

s
u
m
3
4
5
6
1
2
1
3
1
4
1
5
2
1
2
2
2
3
2
4
C
a
s
t
i
n
g

O
u
t

9
`
s
W
h
e
n

I
i
n
d
i
n
g

t
h
e

D
i
g
i
t

S
u
m

o
I

a

n
u
m
b
e
r
,
9
`
s

c
a
n

b
e

'
c
a
s
t

o
u
t

T
h
e

D
i
g
i
t

S
u
m

o
I

9
4
9
9
3

i
s

4


7
'
c
a
s
t

o
u
t
`

t
h
e

9

s
W
h
e
n

I
i
n
d
i
n
g

t
h
e

D
i
g
i
t

S
u
m

o
I

a

n
u
m
b
e
r
,
W
h
e
n

I
i
n
d
i
n
g

t
h
e

D
i
g
i
t

S
u
m

o
I

a

n
u
m
b
e
r
,
G
r
o
u
p

o
I

n
u
m
b
e
r
s

t
h
a
t

s
u
m

t
o

9

c
a
n

b
e

'
c
a
s
t

o
u
t

T
h
e

D
i
g
i
t

S
u
m

o
I

5
4
9
6
7
3
i
s

7
'
c
a
s
t

o
u
t
`

t
h
e

5

4
,

9
a
n
d

6

3
,

l
e
a
v
i
n
g

f
u
s
t

7

B
y

C
a
s
t
i
n
g

O
u
t

9
`
s
,
F
i
n
d
i
n
g

a

D
i
g
i
t

S
u
m

c
a
n

b
e

d
o
n
e

m
o
r
e

q
u
i
c
k
l
y
a
n
d

m
e
n
t
a
l
l
y
!
C
h
e
c
k
i
n
g

w
i
t
h

D
i
g
i
t

S
u
m
s
B
o
t
h

A
d
d
i
t
i
o
n

a
n
d

M
u
l
t
i
p
l
i
c
a
t
i
o
n

p
r
e
s
e
r
v
e

D
i
g
i
t

S
u
m
s
2

1


1

4

3

5





8
2

6


3

5

6

1





7
I
I

t
h
e

s
u
m

o
I

t
h
e

D
i
g
i
t

S
u
m
s

d
o
e
s

N
O
T

e
q
u
a
l
T
h
e

D
i
g
i
t

S
u
m

o
I

t
h
e

s
u
m
,

t
h
e
n

t
h
e
r
e
`
s

a

p
r
o
b
l
e
m
!

1
6



8

2

1
x

1

4

2

9

4





6
2

6
x

3

5

9

1

0





1
T
h
e

D
i
g
i
t

S
u
m

o
I

t
h
e

s
u
m
,

t
h
e
n

t
h
e
r
e
`
s

a

p
r
o
b
l
e
m
!



3
x
5


1
5





8
x
8


6
4



1

I
I

t
h
e

p
r
o
d
u
c
t

o
I

t
h
e

D
i
g
i
t

S
u
m
s

d
o
e
s

N
O
T

e
q
u
a
l
T
h
e

D
i
g
i
t

S
u
m

o
I

t
h
e

p
r
o
d
u
c
t
,

t
h
e
n

t
h
e
r
e
`
s

a

p
r
o
b
l
e
m
!
D
i
g
i
t

S
u
m
s

o
I

P
e
r
I
e
c
t

S
q
u
a
r
e
s
A
l
l

P
e
r
f
e
c
t

S
q
u
a
r
e
s
e
n
d

i
n

1
,

4
,

5
,

,

9

o
r

a
n
d
d
i
g
i
t

s
u
m
s

a
r
e

1
,

4
,

7

o
r

9
4
5
3
9
e
n
d
s

i
n

9
e
n
d
s

i
n

9
d
i
g
i
t

s
u
m

i
s

3
T
h
e
r
e
f
o
r
e
,

4
5
3
9
i
s

n
o
t
a

p
e
r
f
e
c
t

s
q
u
a
r
e
5
7
7

e
n
d
s

i
n

6
d
i
g
i
t

s
u
m

i
s

7
T
h
e
r
e
f
o
r
e
,

5
7
7

m
a
y
b
e

a

p
e
r
f
e
c
t

s
q
u
a
r
e
L
e
I
t
t
o
R
i
g
h
t
V
e
d
i
c

M
a
t
h
A
l
l
I
r
o
m
9
a
n
d
t
h
e
l
a
s
t
I
r
o
m
1
0
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
S
u
b
t
r
a
c
t
i
n
g

N
u
m
b
e
r

f
r
o
m

1
0
n
A
p
p
l
i
c
a
t
i
o
n
s

w
i
t
h

M
o
n
e
v
s
u
t
r
a
s
A
l
l

F
r
o
m

9

a
n
d

t
h
e

L
a
s
t

F
r
o
m

1
0
A
p
p
l
i
c
a
t
i
o
n
s

w
i
t
h

M
o
n
e
v
A
l
l

F
r
o
m

9

a
n
d

t
h
e

L
a
s
t

F
r
o
m

1
0
W
h
e
n

s
u
b
t
r
a
c
t
i
n
g

a

n
u
m
b
e
r

I
r
o
m

a

p
o
w
e
r

o
I

1
0
S
u
b
t
r
a
c
t

a
l
l
d
i
g
i
t
s

f
r
o
m
9

a
n
d

l
a
s
t

f
r
o
m

1
0
1

0

0

0
-
2

7

6

7

2

4

2

7

6

7

2

4

f
r
o
m

9

f
r
o
m

1
0

A
l
l

f
r
o
m

9

a
n
d

t
h
e
L
a
s
t

f
r
o
m

1
0
7

2

4

I
I

t
h
e

n
u
m
b
e
r

e
n
d
s

i
n

z
e
r
o
,

u
s
e

t
h
e

l
a
s
t

n
o
n
-
z
e
r
o

n
u
m
b
e
r

a
s

t
h
e

l
a
s
t

n
u
m
b
e
r
1

0

0

0

0
-
4

2

5

0

5

7

5

0

4

2

5

0

5

7

5

0

f
r
o
m

9

f
r
o
m

1
0

A
l
l

F
r
o
m

9

a
n
d

t
h
e

L
a
s
t

F
r
o
m

1
0
I
I

t
h
e

n
u
m
b
e
r

i
s

l
e
s
s

d
i
g
i
t
s
,

t
h
e
n

a
p
p
e
n
d

z
e
r
o
s

t
o

t
h
e

s
t
a
r
t
1

0

0

0

0
-
4

2

5

9

5

7

5

0

4

2

5

9

5

7

5

f
r
o
m

9

f
r
o
m

1
0

A
l
l

f
r
o
m

9

a
n
d

t
h
e
L
a
s
t

f
r
o
m

1
0
W
h
e
n

s
u
b
t
r
a
c
t
i
n
g

I
r
o
m

a

m
u
l
t
i
p
l
e

o
I

a

p
o
w
e
r

o
I

1
0
,

J
u
s
t

d
e
c
r
e
m
e
n
t

t
h
e

I
i
r
s
t

d
i
g
i
t

b
y

1
,

t
h
e
n

s
u
b
t
r
a
c
t

r
e
m
a
i
n
i
n
g

d
i
g
i
t
s
4

0

0

0
-
2

5

7

3

7

4

3

2

5

7

3

7

4

3

f
r
o
m

9

f
r
o
m

1
0

9

5

7

5

4

M
o
n
e
y
A

g
r
e
a
t

a
p
p
l
i
c
a
t
i
o
n

o
I

'
A
l
l

I
r
o
m

9

a
n
d

l
a
s
t

I
r
o
m

1
0


i
s

m
o
n
e
y
.
C
h
a
n
g
e

c
a
n

b
e

c
a
l
c
u
l
a
t
e
d

b
y

a
p
p
l
y
i
n
g

t
h
i
s

s
u
t
r
a

m
e
n
t
a
l
l
y
!
$

1

0

.
0

0
-
$

4

.
2

5

$

5

.
7

5

$

4

.
2

5

f
r
o
m

9

f
r
o
m

1
0

A
l
l

f
r
o
m

9

a
n
d

t
h
e
L
a
s
t

f
r
o
m

1
0
$

5

.
7

5

$

5

.
7

5

I
t

i
s

o
I
t
e
n

t
h
e

c
a
s
e

t
h
e

p
a
y
m
e
n
t

i
s

m
a
d
e

w
i
t
h

b
i
l
l
s

o
n
l
y
,

t
h
e
s
e

a
r
e

m
u
l
t
i
p
l
e
s

o
I

'
1
0
0

T
H
I
N
K

M
E
N
T
A
L
L
Y
!
N
u
m
b
e
r
S
p
l
i
t
t
i
n
g
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
S
p
l
i
t
t
i
n
g

N
u
m
b
e
r

t
o

S
i
m
p
l
i
f
v

P
r
o
b
l
e
m
s
u
t
r
a
s
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
r
o
m

1
0
B
a
r

N
u
m
b
e
r

A
r
i
t
h
m
e
t
i
c
U
s
i
n
g

B
a
r

N
u
m
b
e
r
s
B
a
r

N
u
m
b
e
r
s
3
1

m
e
a
n
s

3
0

1

o
r

2
9
B
a
r

n
u
m
b
e
r
s

a
r
e

a
n
a
l
o
g
o
u
s

t
o

t
i
m
e
T
h
e

t
i
m
e

5
:
4
5

c
a
n

b
e

'
4
5

m
i
n
u
t
e
s

p
a
s
t

5

2
9

i
s

c
l
o
s
e

t
o

t
h
e

n
u
m
b
e
r

3
0
L
e
t
`
s

r
e
w
r
i
t
e

2
9

a
s

3
1
'
4
5

m
i
n
u
t
e
s

p
a
s
t

5

O
R
'
1
5

m
i
n
u
t
e
s

b
e
I
o
r
e

6

5
2

m
e
a
n
s

5
0

2

o
r

4
8

6
3

m
e
a
n
s

6
0

3

o
r

5
7

4
1
2

m
e
a
n
s

4
0
0

1
0


3
9
2

4
1
3

m
e
a
n
s

4
0
0

1
3


3
8
7

N
o
t
e

t
h
e

d
i
s
t
i
n
c
t
i
o
n

b
e
t
w
e
e
n
4
1
2


3
9
2
a
n
d
4
1
2


3
8
8
S
u
b
t
r
a
c
t
i
o
n

u
s
i
n
g

B
a
r

N
u
m
b
e
r
s
T
r
a
d
i
t
i
o
n
a
l
l
y
,

s
u
b
t
r
a
c
t
i
o
n

i
s
p
e
r
I
o
r
m
e
d

o
n

c
o
l
u
m
n
s

r
i
g
h
t

t
o

l
e
I
t
'
b
o
r
r
o
w
i
n
g


I
r
o
m

t
h
e

n
e
x
t

l
e
I
t
c
o
l
u
m
n

w
h
e
n

n
e
c
e
s
s
a
r
y
4

3

5
-
2

7

6

H
o
w
e
v
e
r
,

s
u
b
t
r
a
c
t
i
n
g

e
a
c
h

c
o
l
u
m
n

i
n
d
e
p
e
n
d
e
n
t
l
y
g
i
v
e
s

t
h
e

I
o
l
l
o
w
i
n
g
:
4


2
1

5

9

4


2
3


-
4
5


-
1

N
e
g
a
t
i
v
e

n
u
m
b
e
r
s

c
a
n

b
e

r
e
p
l
a
c
e
d

w
i
t
h

t
h
e
i
r

b
a
r

n
u
m
b
e
r

e
q
u
i
v
a
l
e
n
t

,

s
o
4


2
3


4
5


1

4

3

5
-
2

7

6

2

4

1


2
4
1



1
5
9

S
o
,
A
r
i
t
h
m
e
t
i
c

o
I

B
a
r

N
u
m
b
e
r
s
2

9


4

8

7

7

T
h
e

o
r
i
g
i
n
a
l

p
r
o
b
l
e
m

c
a
n

b
e

r
e
w
r
i
t
t
e
n

t
h
r
e
e

d
i
I
I
e
r
e
n
t

w
a
y
s
u
s
i
n
g

b
a
r

n
u
m
b
e
r
s



3

1



5

2

3

1


4

8

7

7

2

9


5

2

7

7

3

1


5

2

8

3


7

7

I
n

e
a
c
h

c
a
s
e
,

t
h
e

r
e
s
u
l
t

i
s

t
h
e

s
a
m
e
,

7
7
!
7


8
-
1
7


9
-
2
3

1
A
r
i
t
h
m
e
t
i
c

o
I

B
a
r

N
u
m
b
e
r
s
2

8


4

3

7

1


A
d
d
i
t
i
o
n
:
S
u
b
t
r
a
c
t
i
o
n
:
3

1


4

2

7

1

1


2
-
1
6

3
-
3

7

2

6


6

3
-
4

3
2

6

6


3
-
3

3
M
u
l
t
i
p
l
i
c
a
t
i
o
n
:
D
i
v
i
s
i
o
n
:
2

6

2

6

6


3
-
3

3
2

8
x



3

8

4


9

6


8
4

8

7

3

7

1


3

1


2
9

3

2
x



3

9

3

3

6


2
x
3
1

3
S
p
e
c
i
a
l
M
u
l
t
i
p
l
i
c
a
t
i
o
n
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
M
u
l
t
i
p
l
v

b
v

1
1
M
u
l
t
i
p
l
v

a
b

x
a
c

w
h
e
r
e

b

1
0
M
u
l
t
i
p
l
v

b
a

x
c
a

w
h
e
r
e

b

1
0
M
u
l
t
i
p
l
v

b
v

9
9
,

9
9
9
,

e
t
c
U
s
i
n
g

t
h
e

A
v
e
r
a
g
e

t
o

M
u
l
t
i
p
l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
T
h
e

O
n
e

B
e
f
o
r
e
b
o
t
h

n
u
m
b
e
r
s
s
t
a
r
t

w
i
t
h

3
W
h
e
n

2
-
d
i
g
i
t

n
u
m
b
e
r
s

s
t
a
r
t

w
i
t
h

t
h
e

s
a
m
e

d
i
g
i
t

a
n
d

t
h
e
i
r

l
a
s
t

d
i
g
i
t
s

s
u
m

t
o

1
0
,
T
h
e

p
r
o
d
u
c
t

o
I

t
h
e

t
w
o

n
u
m
b
e
r
s

c
a
n

b
e

e
a
s
i
l
y

c
o
m
p
u
t
e
d
3
2
x



3
8
1
2
3

2
x

3

8 1
6
1
2
1
6
3
2
x



3
8
t
h
e

s
u
m

o
f
t
h
e

l
a
s
t

d
i
g
i
t
s
i
s

1
0
1
2
1
6
1
2


3
x
4
"
B
y

o
n
e

m
o
r
e
t
h
a
n

t
h
e

o
n
e

b
e
f
o
r
e
"
1
6


2
x
8
1
2
1
6
3
5

x

3
5



1
2
2
5


1
2
2
5

0
3
4

x

3
6



1
2
2
4


1
2
2
5


1
2
2
5

-
1
2
3
3

x

3
7



1
2
2
1


1
2
2
5


1
2
2
5

2
2
3
2

x

3
8



1
2
1


1
2
2
5


1
2
2
5

3
2
3
1

x

3
9



1
2


1
2
2
5


1
2
2
5

-
4
2
A
s

t
h
e

n
u
m
b
e
r
s

g
e
t
f
u
r
t
h
e
r

f
r
o
m

3
5
,

t
h
e
i
r

p
r
o
d
u
c
t

g
e
t
s

f
u
r
t
h
e
r
f
r
o
m

3
5
2


1
2
2
5
b
v

a

f
a
c
t
o
r

o
f

t
h
e

d
i
f
f
e
r
e
n
c
e
s
q
u
a
r
e
d
S
p
e
c
i
a
l

M
u
l
t
i
p
l
i
c
a
t
i
o
n
T
h
e

F
i
r
s
t

b
v

t
h
e

F
i
r
s
t
T
h
e

L
a
s
t

b
v

t
h
e

L
a
s
t
b
o
t
h

n
u
m
b
e
r
s
E
n
d

w
i
t
h

4
W
h
e
n

2
-
d
i
g
i
t

n
u
m
b
e
r
s

e
n
d

w
i
t
h

t
h
e

s
a
m
e

d
i
g
i
t

a
n
d

t
h
e
i
r

I
i
r
s
t

d
i
g
i
t
s

s
u
m

t
o

1
0
,
T
h
e

p
r
o
d
u
c
t

o
I

t
h
e

t
w
o

n
u
m
b
e
r
s

c
a
n

b
e

e
a
s
i
l
y

c
o
m
p
u
t
e
d
2
4
x



8
4
2
0
2

4
x

8

4 1
6
2
0
1
6
2
4
x



8
4
t
h
e

s
u
m

o
f
t
h
e

f
i
r
s
t

d
i
g
i
t
s
i
s

1
0
2
0
1
6
2
0


2
x
8


4
1
6


4
x
4
2
0
1
6
2
7
3

6
x

7

6 3
6
2
7
3
6
2
6
6

2
x

4

2 0
4
2
6
0
4
S
p
e
c
i
a
l

M
u
l
t
i
p
l
i
c
a
t
i
o
n
B
v

O
n
e

L
e
s
s

T
h
a
n
T
h
e

O
n
e

B
e
f
o
r
e
W
h
e
n

m
u
l
t
i
p
l
y
i
n
g

b
y

a

n
u
m
b
e
r

w
i
t
h

a
l
l

d
i
g
i
t
s

e
q
u
a
l

t
o

'
9

,
T
h
e

p
r
o
d
u
c
t

o
I

t
h
e

t
w
o

n
u
m
b
e
r
s

c
a
n

b
e

e
a
s
i
l
y

c
o
m
p
u
t
e
d

i
n

t
w
o

p
a
r
t
s
3
1
3

2
x

9

9 6
8
3
1
6
8
3
1


3
2
-
1
"
B
y

o
n
e

l
e
s
s
t
h
a
n

t
h
e

o
n
e

b
e
f
o
r
e
"
6
8


1
0
0
-
3
2
'
A
l
l

f
r
o
m

9
,
t
h
e

l
a
s
t

f
r
o
m

1

`
5
6
7
5

6

8
x


9

9

9
4
3
2
5
6
7
4
3
2
1
2
8
4
1

2

8

5
x


9

9

9

9
8
7
1
5
1
2
8
4
8
7
1
5
S
p
e
c
i
a
l

M
u
l
t
i
p
l
i
c
a
t
i
o
n
S
p
e
c
i
f
i
c
G
e
n
e
r
a
l
W
h
e
n

m
u
l
t
i
p
l
y
i
n
g

n
u
m
b
e
r
s
,

t
h
e

a
v
e
r
a
g
e

c
a
n

s
o
m
e
t
i
m
e
s

b
e

u
s
e
d
t
o

d
e
t
e
r
m
i
n
e

t
h
e
i
r

p
r
o
d
u
c
t

3
1


x


2
9
t
h
e
i
r

a
v
e
r
a
g
e

i
s

3
0
s
q
u
a
r
e

t
h
i
s

a
n
d

s
u
b
t
r
a
c
t

1

t
o

d
e
t
e
r
m
i
n
e

t
h
e

p
r
o
d
u
c
t
3
1


x


2
9



3
0
2

1
2



9
0
0



8
9
9
3
0


(
3
1

2
9
)
/
2
1


(
3
1
-
3
0
)
2
3
1


x


2
9



3
0



9
0
0



8
9
9
3
8


x


4
2



4
0
2

2
2



1
6
0
0



1
5
9
6
'
a
l
l

f
r
o
m

9
,

t
h
e

l
a
s
t

f
r
o
m

1
0
`
4
7


x


5
3



5
0
2

3
2



2
5
0
0



2
4
9
1
'
a
l
l

f
r
o
m

9
,

t
h
e

l
a
s
t

f
r
o
m

1
0
`
G
e
n
e
r
a
l
M
u
l
t
i
p
l
i
c
a
t
i
o
n
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
M
u
l
t
i
p
l
v

2
-
D
i
g
i
t

N
u
m
b
e
r
s
M
u
l
t
i
p
l
v

3
-
D
i
g
i
t

N
u
m
b
e
r
s
s
u
t
r
a
s
J
e
r
t
i
c
a
l
l
v

a
n
d

C
r
o
s
s
w
i
s
e
M
u
l
t
i
p
l
v

3
-
D
i
g
i
t

N
u
m
b
e
r
s
M
u
l
t
i
p
l
y
i
n
g

2
-
D
i
g
i
t

N
u
m
b
e
r
s
8
V
e
d
i
c
M
e
t
h
o
d
2 4
4 3
1
2
T
r
a
d
i
t
i
o
n
a
l
M
e
t
h
o
d
2
4
x


4
3
7
2
9
6



1
6
I
n
t
e
r
m
e
d
i
a
t
e

M
e
t
h
o
d
2
4
x


4
3
1
2
6
0
1
6
0

3
x
4

3
x
2
0
J
e
r
t
i
c
a
l
l
v

a
n
d
C
r
o
s
s
w
i
s
e
8
1
2
8


2
x
4
u
p
p
e
r
h
a
l
f
"
v
e
r
t
i
c
a
l
"
1
2


4
x
3
l
o
w
e
r
h
a
l
f
"
v
e
r
t
i
c
a
l
"
4
6

x

5
2

2
0
1
2


3
8
0


2
3
9
2
9
6



1
0
3
2
1
6
6
1
6


4
x
4
6


2
x
3
"
c
r
o
s
s
w
i
s
e
"
6
0
1
0
3
2
1
6
0
8
0
0

3
x
2
0

4
0
x
4

4
0
x
2
0
8
1
2

2
2
0



1
0
3
2
M
u
l
t
i
p
l
y
i
n
g

3
-
D
i
g
i
t

N
u
m
b
e
r
s
F
i
n
d

5
0
4

x

3
2
1
5
0
4
x

3
2
1
5
0
4
1
0
0
8



T
r
a
d
i
t
i
o
n
a
l
M
e
t
h
o
d
V
e
d
i
c
M
e
t
h
o
d
5




0




4
3




2




1
1
5
,

1
0
,

1
7
,

8
,

4
1
0
0
8



1
6
1
7
8
4
1
5
1
2





1
6
1
7
8
4
M
e
n
t
a
l
l
v
,

w
e

t
h
i
n
k

1
5
,

1
6
0
,

1
6
1
7
,

1
6
1
7
8
,

1
6
1
7
8
4
F
i
n
d

1
2
3

x

3
2
1
M
e
n
t
a
l
l
v
,

w
e

t
h
i
n
k

3
,

3
8
,

3
9
4
,

3
9
4
8
,

3
9
4
8
3
3
,

8
,

1
4
,

8
,

3
3
9
4
8
3
M
u
l
t
i
p
l
y
i
n
g

3
-
D
i
g
i
t

N
u
m
b
e
r
s
J
e
r
t
i
c
a
l
l
v

a
n
d
C
r
o
s
s
w
i
s
e
F
i
n
d

6
1
7

x

8
9
3
V
e
d
i
c
M
e
t
h
o
d
6




1




7
8




9




3
4
8
,

6
2
,

8
3
,

6
6
,

2
1
4
8
,

6
2
,

8
3
,

6
6
,

2
1
5
5
0
9
8
1
M
e
n
t
a
l
l
v
,

w
e

t
h
i
n
k

4
8
,
5
4
2
,

5
5
0
3
,

5
5
0
9
6
,

5
5
0
9
8
1
S
q
u
a
r
i
n
g
V
e
d
i
c

M
a
t
h
J
e
r
t
i
c
a
l
l
v

a
n
d
C
r
o
s
s
w
i
s
e
l
e
s
s
o
n
s
S
q
u
a
r
i
n
g

N
u
m
b
e
r
s

E
n
d
i
n
g

i
n

5
S
q
u
a
r
i
n
g

N
u
m
b
e
r
s

N
e
a
r

5
0
s
u
t
r
a
s
B
v

O
n
e

M
o
r
e

T
h
a
n

t
h
e

O
n
e

B
e
f
o
r
e
P
r
o
p
o
r
t
i
o
n
a
t
e
l
v
S
q
u
a
r
i
n
g

N
u
m
b
e
r
s

N
e
a
r

5
0
G
e
n
e
r
a
l

S
q
u
a
r
i
n
g

u
s
i
n
g

t
h
e

D
u
p
l
e
x

o
f

a

N
u
m
b
e
r
S
q
u
a
r
i
n
g

N
u
m
b
e
r
s

t
h
a
t

E
n
d

i
n

5
B
v

O
n
e

M
o
r
e

T
h
a
n

t
h
e

O
n
e

B
e
f
o
r
e
3
5
2

4

/

2
5


1
2

/

2
5



1
2
2
5
T
h
e

r
e
s
u
l
t

i
s

c
o
m
p
r
i
s
e
d

o
f

t
w
o

'
p
a
r
t
s
`
T
h
e

b
o
t
t
o
m

'
p
a
r
t
`

i
s

a
l
w
a
v
s

2
5
T
h
e

t
o
p

'
p
a
r
t
`

i
s

n
(
n

1
)
B
v

O
n
e

M
o
r
e

T
h
a
n
T
h
e

O
n
e

B
e
f
o
r
e
7
5
2

8

/

2
5


5
6

/

2
5

2
5
4
5
2

5

/

2
5


2
0

/

2
5

2
5
9
5
2

1
0

/

2
5


9
0

/

2
5

2
5
1
1
5
2

1
1

1
2

/

2
5


1
3
2

/

2
5



1
3
2
2
5
S
q
u
a
r
i
n
g

N
u
m
b
e
r
s

N
e
a
r

5
0
5
4
2

5
2

4
/

4
2


2
9
/

1
6



2
9
1

F
o
r

n
u
m
b
e
r
s

g
r
e
a
t
e
r

t
h
a
n

5
0
T
h
e

r
e
s
u
l
t

i
s

c
o
m
p
r
i
s
e
d

o
f

t
w
o

'
p
a
r
t
s
`
T
h
e

b
o
t
t
o
m

'
p
a
r
t
`

i
s

a
l
w
a
v
s

t
h
e

b
o
t
t
o
m

d
i
g
i
t

s
q
u
a
r
e
d
T
h
e

t
o
p

'
p
a
r
t
`

i
s

t
h
e

t
o
p

d
i
g
i
t

s
q
u
a
r
e
d

p
l
u
s

t
h
e

b
o
t
t
o
m

d
i
g
i
t
4
8
2

5
2
-
2
/

2
2


2
3
/

4



2
3

4
5
3
2

2
5

3

/

9


2
8

/

9



2
8

9
4
6
2

2
5
-
4

/

1
6


2
1

/

1
6



2
1
1

4
8

5
-
2
/

2


2
3
/

4



2
3

4
F
o
r

n
u
m
b
e
r
s

l
e
s
s

t
h
a
n

5
0
T
h
e

r
e
s
u
l
t

i
s

c
o
m
p
r
i
s
e
d

o
f

t
w
o

'
p
a
r
t
s
`
T
h
e

b
o
t
t
o
m

'
p
a
r
t
`

i
s

a
l
w
a
v
s

t
h
e

b
a
r

o
f

t
h
e

b
o
t
t
o
m

d
i
g
i
t

s
q
u
a
r
e
d
T
h
e

t
o
p

'
p
a
r
t
`

i
s

t
h
e

t
o
p

d
i
g
i
t

s
q
u
a
r
e
d

m
i
n
u
s

t
h
e

b
a
r

o
f

t
h
e

b
o
t
t
o
m

d
i
g
i
t
G
e
n
e
r
a
l

S
q
u
a
r
i
n
g
T
h
e

D
u
p
l
e
x
,

D
,

o
I

a

n
u
m
b
e
r
1

d
i
g
i
t

D
(
n
)


n
2
e
.
g
.

D
(
5
)


2
5

2

d
i
g
i
t
s

D
(
n
)


t
w
i
c
e

t
h
e

p
r
o
d
u
c
t

o
I

t
h
e

d
i
g
i
t
s

e
.
g
.

D
(
2
6
)


2
(
2
)
(
6
)


2
4

3

d
i
g
i
t
s

D
(
n
)


t
w
i
c
e

t
h
e

p
r
o
d
u
c
t

o
I

t
h
e

o
u
t
e
r

d
i
g
i
t
s

t
h
e

s
q
u
a
r
e

o
I

t
h
e

m
i
d
d
l
e

d
i
g
i
t

T
h
e

s
q
u
a
r
e

o
f

a

n
u
m
b
e
r

i
s

t
h
e

~
t
o
t
a
l


o
f

i
t
s

D
u
p
l
e
x
e
s
3
4
2



1
1
5
6
D
(
3
)


9
,



D
(
3
4
)


2
4
,


D
(
4
)


1
6
9
,

2
4
,

1




1
1
5

5
6
2



3
1
3
6
D
(
5
)


2
5
,



D
(
5
6
)


6
0
,


D
(
6
)


3
6
2
5
,

,

3




3
1
3

t
h
e

s
q
u
a
r
e

o
I

t
h
e

m
i
d
d
l
e

d
i
g
i
t

e
.
g
.

D
(
1
3
7
)


2
(
1
)
(
7
)


3
2


1
4


2
3

N
u
m
b
e
r

S
p
l
i
t
t
i
n
g
4
7
2



1
1
5
6
D
(
4
)


1
6
,



D
(
4
7
)


5
6
,


D
(
4
)


4
9
1

,

5

,

4
9




2
2

9
1
6

4
9
5

6
2
2

9



G
e
n
e
r
a
l

S
q
u
a
r
i
n
g
1
2
3
2
-
S
p
l
i
t

1
2
3

i
n
t
o

t
w
o

p
a
r
t
s

1
2

/

3
D
(
1
2
)


1
4
4
,



D
(
1
2
3
)


7
2
,


D
(
3
)


9
1
4
4
,

7
2
,

9





1
5
1
2
9
4
1
2
2
-
S
p
l
i
t

4
1
2

i
n
t
o

t
w
o

p
a
r
t
s

4

/

1
2
D
(
4
)


1
6
,



D
(
4
1
2
)


9
6
,


D
(
1
2
)


1
4
4
1

,

9

,

1
4
4


9
7
4
4
G
e
n
e
r
a
l

S
q
u
a
r
i
n
g

(
3

a
n
d

4
-
d
i
g
i
t

n
u
m
b
e
r
s
)
3
4
1
2



1
1
6
2
8
1
D
(
3
)


9
,



D
(
3
4
)


2
4
,


D
(
3
4
1
)


2
2
,


D
(
4
1
)


8
,


D
(
1
)


1
9
,

2
4
,

2
2
,

8
,

1



1
1

2
8
1

2
6
3
2



D
(
2
)


4
,



D
(
2
6
)


2
4
,


D
(
2
6
3
)


4
8
,


D
(
6
3
)


3
6
,


D
(
3
)


9
D
(
2
)


4
,



D
(
2
6
)


2
4
,


D
(
2
6
3
)


4
8
,


D
(
6
3
)


3
6
,


D
(
3
)


9
4
,

2
4
,

4
8
,

3

,

9

9
1

9

4
3
3
2
2



D
(
4
)


1
6
,



D
(
4
3
)


2
4
,


D
(
4
3
3
)


3
3
,


D
(
4
3
3
2
)


3
4
,
D
(
3
3
2
)


2
1
,


D
(
3
2
)


1
2
,


D
(
2
)


4
1

,

2
4
,

3
3
,

3
4
,

2
1
,

1
2
,

4



1
8
7

2
2
4

S
p
e
c
i
a
l
D
i
v
i
s
i
o
n
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
D
i
v
i
s
i
o
n

b
v

9
D
i
v
i
s
i
o
n

B
e
l
o
w

a
n
d

A
b
o
v
e

1
0
n
s
u
t
r
a
s
N
e
e
d

t
o

D
e
t
e
r
m
i
n
e

T
h
i
s
D
i
v
i
s
i
o
n

B
e
l
o
w

a
n
d

A
b
o
v
e

1
0
D
i
v
i
s
i
o
n

b
y

9
3
2

9

9

)

3

2
3
r
5

w
h
e
r
e

5

2
5
2

9

9

)

5

2
5
r
7

w
h
e
r
e

7

2
7
5

9

9

)

7

5
7
5

9

9

)

7

5
7
r
1
2

w
h
e
r
e

1
2

5



r
e
m
a
i
n
d
e
r

~

9


8
r
3
3
1
0
2

9

9

)

3

1

0

2
3

4
4
r
6

3
1
2

9

9

)

3
1
2
3

4

r
6
W
h
e
n

d
i
v
i
d
i
n
g

b
v

9
,
T
h
e

r
e
m
a
i
n
d
e
r
i
s

a
l
w
a
v
s

t
h
e
d
i
g
i
t

s
u
m

o
f

t
h
e

o
r
i
g
i
n
a
l

n
u
m
b
e
r


D
i
v
i
s
i
o
n

b
y

9

w
i
t
h

C
a
r
r
i
e
s
3
1
7
2

9

9

)

3

1
7

2
3

4

1
1

r
1
3





3
5
1

r
1
3


3
5
2

r
4
5
5
5
5

9

9

)

5

5

5
5

1
0

r
1
5





6
1

r
6
S
h
o
r
t

C
u
t
3
1
7
2

9

9

)

3

1

7

2
3

5

2

r
4
C
h
e
c
k

t
o

s
e
e

i
f

n
e
x
t

s
u
m

i
s

~
9
,

i
f

s
o

a
d
d

1
6
1
5
3

9

9

)

6

1

5

3
6

8

3

r
6
D
i
v
i
s
i
o
n

B
e
l
o
w

a

B
a
s
e

N
u
m
b
e
r
2
3
5

8
8
8
8

)

2




3


5
2




5


9
1


2
2




4
1
.
D
r
o
p

2

(
t
h
e

f
i
r
s
t

d
i
g
i
t
)
2
.
C
r
e
a
t
e

1
2


8
8
3
.
M
u
l
t
i
p
l
e

1
2

b
v

2


2
4
4
.
A
d
d

3
5

a
n
d
2
4
2
1
1

7
5
7
6

)

2




1


1
2


5
5




0
2




6


1
1
1
2
1
1
2
3

8
9
8
9
8
9
8
9

)

1


1


2


1


1


2


3
1


2


4


6


4


8


7
1

0

1

1
1




0




1




1
2




0




2




2
4




0




4




4
D
i
v
i
s
i
o
n

A
b
o
v
e

a

B
a
s
e

N
u
m
b
e
r
1
4
9
8

1
2
4
1
2
4

)

1


4




9


8
1


2




1


0
2


4
2







4
1
.
D
r
o
p

1

(
t
h
e

f
i
r
s
t

d
i
g
i
t
)
2
.
C
r
e
a
t
e

2
4
3
.
M
u
l
t
i
p
l
v

2
4

b
v

1


2
4
4
.
A
d
d

4


2
5
.
M
u
l
t
i
p
l
v

2
4

b
v

2


4
8
6
.
A
d
d

c
o
l
u
m
n
s
4




8
1
2

r
1
0
2
3
1
1

1
1
2
1
1
2

)

2


3




1


1
2


1




4


1
1


2
2







4 1




2


2
0

r
7
1


w
h
e
r
e

7
1


1
1
2
-
4
1
G
e
n
e
r
a
l
D
i
v
i
s
i
o
n
V
e
d
i
c

M
a
t
h
l
e
s
s
o
n
s
G
e
n
e
r
a
l

D
i
v
i
s
i
o
n
D
e
c
i
m
a
l
i
:
i
n
g

t
h
e

R
e
m
a
i
n
d
e
r
s
u
t
r
a
s
D
e
c
i
m
a
l
i
:
i
n
g

t
h
e

R
e
m
a
i
n
d
e
r
G
e
n
e
r
a
l

D
i
v
i
s
i
o
n
3
0
8

5
1
3




0




8
6
2
0
5
1
1
.
C
r
e
a
t
e

f
l
a
g
,

1
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
2
.
5

g
o
e
s

i
n
t
o

3
0

6
t
i
m
e
s

w
i
t
h

r
0
3
.
0
8

1
x
6


2
2
3
4

5
4
2




3




4
3
5
4


6

r
2
1
.
C
r
e
a
t
e

f
l
a
g
,

4
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
2
.
5

g
o
e
s

i
n
t
o

2
3

4
t
i
m
e
s

w
i
t
h

r
3
3
.
3
4

4
x
4


1
8
4
1
8
3
5
5
0
3

7
2
5




0




3
7
1
1
7
2



6

r
7
1


4

r
1
8
3
.
3
4

4
x
4


1
8
1
.
C
r
e
a
t
e

f
l
a
g
,

2
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
2
.
7

g
o
e
s

i
n
t
o

5
0

7
t
i
m
e
s

w
i
t
h

r
1
3
.
1
3

2
x
7


7
2


7
1
G
e
n
e
r
a
l

D
i
v
i
s
i
o
n
1
.
C
r
e
a
t
e

f
l
a
g
,

2
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
2
.
6

g
o
e
s

i
n
t
o

1
9

3
t
i
m
e
s

w
i
t
h

r
1
1
9
9
0
2

6
2
1




9




9




0




2
3
1
6
2
1
.
C
o
m
p
u
t
e

1
9

2
x
3


1
3
2
.
6

g
o
e
s

i
n
t
o

1
3

2
t
i
m
e
s

w
i
t
h

r
1
1




9




9
0




2
3
2
1




0
1
6
2
1
0



3
2
1

r
0
3
2
1




0
1
.
C
o
m
p
u
t
e

1
0

2
x
2


6
2
.
6

g
o
e
s

i
n
t
o

6

1
t
i
m
e
s

w
i
t
h

r
0
1




9




9
0
2
3




2
1
0
1
6
2
1
0
1
.
C
o
m
p
u
t
e

0
2

2
x
1


0

(
r
e
m
a
i
n
d
e
r
)
1




9




9
0
2
3




2




1




0
1
6
2
1
0
G
e
n
e
r
a
l

D
i
v
i
s
i
o
n
1
.
C
r
e
a
t
e

f
l
a
g
,

3
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
2
.
6

g
o
e
s

i
n
t
o

9

1
t
i
m
e
s

w
i
t
h

r
3
9
2
0
5
4

6
3
9




2
0




5




4
1
3
6
3
1
.
C
o
m
p
u
t
e

3
2

3
x
1


2
9
2
.
6

g
o
e
s

i
n
t
o

2
9

4
t
i
m
e
s

w
i
t
h

r
5
9




2
0
5




4
1




4
3
6
3
5
0



1
4
6
1

r
1
1
1




4
1
.
C
o
m
p
u
t
e

5
0

3
x
4


3
8
2
.
6

g
o
e
s

i
n
t
o

3
8

6
t
i
m
e
s

w
i
t
h

r
2
9




2




0
5
4
1




4
6
5
6
3
2
9




2




0
5




4
1




4




6




1



1
1
5
6
3
2
1
3
3
1
.
C
o
m
p
u
t
e

2
5

3
x
6


7
2
.
6

g
o
e
s

i
n
t
o

7

1
t
i
m
e

w
i
t
h

r
1
3
.
C
o
m
p
u
t
e
1
4

3
x
1


1
1
r
e
m
a
i
n
d
e
r
G
e
n
e
r
a
l

D
i
v
i
s
i
o
n
1
.
C
r
e
a
t
e

f
l
a
g
,

8
,

f
r
o
m

d
i
v
i
s
o
r

2
n
d
d
i
g
i
t
5
4
3

6
8
5




2




3
6
8
1
.
C
h
a
n
g
e

f
l
a
g

t
o

a

b
a
r

n
u
m
b
e
r

2
2
.
6

g
o
e
s

i
n
t
o

5
2

8

t
i
m
e
s

w
i
t
h

r
4
5




2




3
4
6
2



8

r
2
7
2
.
6

g
o
e
s

i
n
t
o

5
2

8

t
i
m
e
s

w
i
t
h

r
4
1
.
C
o
m
p
u
t
e

4
3

-
2
x
8


2
7
r
e
m
a
i
n
d
e
r
8
4
6
5




2




3
8




2
7
4
6
2
4
0
3
4
2

7
3
4




0




3




4




2




0




0




0




0




0
5





5




2




6


.

3



0




1




3




7
5
7
3
3
D
e
c
i
m
a
l
i
z
i
n
g

t
h
e

R
e
m
i
n
d
e
r
5
4
1
3
6
Q
u
e
s
t
i
o
n
s
a
n
d
C
o
m
m
e
n
t
s

S-ar putea să vă placă și