14526
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
|
3 |
\def\isabellecontext{a{\isadigit{3}}}%
|
|
4 |
\isamarkupfalse%
|
|
5 |
%
|
|
6 |
\isamarkupsubsection{Computing with natural numbers - Magical Methods%
|
|
7 |
}
|
|
8 |
\isamarkuptrue%
|
|
9 |
%
|
|
10 |
\begin{isamarkuptext}%
|
|
11 |
A book about Vedic Mathematics describes three methods to make the calculation of squares of natural numbers easier:
|
|
12 |
|
|
13 |
\begin{itemize}
|
|
14 |
\item {\em MM1}: Numbers whose predecessors have squares that are known or can easily be calculated. For example:
|
|
15 |
\\ Needed: $61^2$
|
|
16 |
\\ Given: $60^2 = 3600$
|
|
17 |
\\ Observe: $61^2 = 3600 + 60 + 61 = 3721$
|
|
18 |
|
|
19 |
\item {\em MM2}: Numbers greater than, but near 100. For example:
|
|
20 |
\\ Needed: $102^2$
|
|
21 |
\\ Let $h = 102 - 100 = 2$ , $h^2 = 4$
|
|
22 |
\\ Observe: $102^2 = (102+h)$ shifted two places to the left $ + h^2 = 10404$
|
|
23 |
|
|
24 |
\item {\em MM3}: Numbers ending in $5$. For example:
|
|
25 |
\\ Needed: $85^2$
|
|
26 |
\\ Observe: $85^2 = (8 * 9)$ appended to $ 25 = 7225$
|
|
27 |
\\ Needed: $995^2$
|
|
28 |
\\ Observe: $995^2 = (99 * 100)$ appended to $ 25 = 990025 $
|
|
29 |
\end{itemize}
|
|
30 |
|
|
31 |
|
|
32 |
In this exercise we will show that these methods are not so magical after all!
|
|
33 |
|
|
34 |
\begin{itemize}
|
|
35 |
\item Based on {\em MM1} define a function \isa{sq} that calculates the square of a natural number.
|
|
36 |
\item Prove the correctness of \isa{sq} (i.e.\ \isa{sq\ n\ {\isacharequal}\ n\ {\isacharasterisk}\ n}).
|
|
37 |
\item Formulate and prove the correctness of {\em MM2}.\\ Hints:
|
|
38 |
\begin{itemize}
|
|
39 |
\item Generalise {\em MM2} for an arbitrary constant (instead of $100$).
|
|
40 |
\item Universally quantify all variables other than the induction variable.
|
|
41 |
\end{itemize}
|
|
42 |
\item Formulate and prove the correctness of {\em MM3}.\\ Hints:
|
|
43 |
\begin{itemize}
|
|
44 |
\item Try to formulate the property `numbers ending in $5$' such that it is easy to get to the rest of the number.
|
|
45 |
\item Proving the binomial formula for $(a+b)^2$ can be of some help.
|
|
46 |
\end{itemize}
|
|
47 |
\end{itemize}%
|
|
48 |
\end{isamarkuptext}%
|
|
49 |
\isamarkuptrue%
|
|
50 |
\isamarkupfalse%
|
|
51 |
\end{isabellebody}%
|
|
52 |
%%% Local Variables:
|
|
53 |
%%% mode: latex
|
|
54 |
%%% TeX-master: "root"
|
|
55 |
%%% End:
|