<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2019-12-21T15:01:37+00:00</updated><id>/feed.xml</id><title type="html">tuzhong007’s blog</title><subtitle>tuzhong007's blog</subtitle><entry><title type="html">problem concerning euler constant</title><link href="/about%20math/2019/12/21/problem-concerning-euler-constant.html" rel="alternate" type="text/html" title="problem concerning euler constant" /><published>2019-12-21T00:00:00+00:00</published><updated>2019-12-21T00:00:00+00:00</updated><id>/about%20math/2019/12/21/problem-concerning-euler-constant</id><content type="html" xml:base="/about%20math/2019/12/21/problem-concerning-euler-constant.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;Recently when I was browsing MSE, I came across a question about Euler constant.&lt;/p&gt;

&lt;p&gt;The problem is:&lt;/p&gt;
&lt;blockquote&gt;
How to show that
&lt;center&gt;
$$
\lim_{n\to\infty}\left[\sum^n_{k=1}\frac{1}{k}-\ln(n)\right]=0.5772\ldots
$$
&lt;/center&gt;
No clue at all. Need help! Appreciated!
&lt;/blockquote&gt;

&lt;p&gt;However, a certain part of the second answer confused me.&lt;/p&gt;

&lt;blockquote&gt;

  &lt;p&gt;&lt;strong&gt;Abel’s partial summation technique:&lt;/strong&gt;
&lt;br /&gt;
Let &lt;script type=&quot;math/tex&quot;&gt;A(n) = \displaystyle \sum_{k=1}^n a(k)&lt;/script&gt;. We then have&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;center&gt;
$$
 \begin{align*}
\sum_{n=1}^{N} a(n) f(n) &amp;amp; = \sum_{n=1}^{N} f(n) (A(n)- A(n-1)) = \sum_{n=1}^{N} A(n) f(n) - \sum_{n=1}^{N} A(n-1) f(n)\\
&amp;amp; = \sum_{n=1}^{N} A(n)f(n) - \sum_{n=0}^{N-1} A(n) f(n+1)\\
&amp;amp; = A(N)f(N) - A(0) f(1) - \sum_{n=1}^{N-1} A(n) (f(n+1)-f(n))
\end{align*}
$$
&lt;/center&gt;
(The above is nothing but the discrete version of integration by parts).
$$
\sum_{n=1}^{N} a(n) f(n) = \int_{1^-}^{N^+} f(t) d(A(t)) =  f(t) A(t) \rvert_{1^-}^{N^+} - \int_{1^-}^{N^+} A(t) f'(t) dt
$$
(The second integral can be interpreted as a Riemann-Stieltjes integral.)
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://math.stackexchange.com/questions/344314/showing-that-lim-n-to-infty-sumn-k-1-frac1k-lnn-0-5772-ldots?noredirect=1&amp;amp;lq=1&quot;&gt;Here is the original post.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  The first part is clear. But for the second part, the equation &lt;script type=&quot;math/tex&quot;&gt;\displaystyle 
\sum_{n=1}^{N} a(n) f(n) = \displaystyle \int_{1^-}^{N^+} f(t) d(A(t))&lt;/script&gt; in particular, I was suprised to see such a peculiar expression of integral which I cann’t recognize at all and that a discrete summation could be turned into an integral so easily. So I asked Mr.Zhou Ruisong for help. He deemed that &lt;script type=&quot;math/tex&quot;&gt;\displaystyle \int_{1^-}^{N^+} f(t) d(A(t))&lt;/script&gt; stood for &lt;script type=&quot;math/tex&quot;&gt;\displaystyle \lim_{a\rightarrow 1^{-}} \lim_{b \rightarrow N^{+}} \int_{a^-}^{b^+} f(t) d(A(t))&lt;/script&gt; and that &lt;script type=&quot;math/tex&quot;&gt;A(n)=A(\lfloor n\rfloor)&lt;/script&gt; for real &lt;script type=&quot;math/tex&quot;&gt;n&lt;/script&gt;, but with uncertainty. Along with his two sensible assumptions, I tried to wrote down a proof of the formular.
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Proof&lt;/strong&gt;
Assume that &lt;script type=&quot;math/tex&quot;&gt;A:\mathbb{R}\rightarrow\mathbb{R}&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;A(n)=A(\lfloor n\rfloor)&lt;/script&gt; for real &lt;script type=&quot;math/tex&quot;&gt;n&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;f:\mathbb{R}\rightarrow\mathbb{R}&lt;/script&gt; is continuous.&lt;/p&gt;

&lt;p&gt;  Let’s consider the integer inteval &lt;script type=&quot;math/tex&quot;&gt;[1,N]&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  Given &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt;. Let a partition &lt;script type=&quot;math/tex&quot;&gt;P=\{x_0,x_1,\dots,x_n\}&lt;/script&gt; s.t. &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
U(f,P,A)-L(f,P,A)&lt;\epsilon %]]&gt;&lt;/script&gt;,
&lt;br /&gt;
&lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
x_{i-1}&lt;x_{i} %]]&gt;&lt;/script&gt;  &lt;script type=&quot;math/tex&quot;&gt;\forall i\in [1,n]&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;x_{0}=1-a&lt;/script&gt; where &lt;script type=&quot;math/tex&quot;&gt;a\in (0,1)&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;x_{n}=N+b&lt;/script&gt; where &lt;script type=&quot;math/tex&quot;&gt;b\in (0,1)&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;\{x\vert x=k-\frac{1}{2},k\in \mathbb{N}^{*}\cap [1,N+1]\}\subset P&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  Then,&lt;/p&gt;

&lt;center&gt;

$$
\begin{align*}\Bigg \vert \sum_{i=1}^{n} f(t_i)\big [ A(x_i)- A(x_{i-1})\big ] - \int_{1-a}^{N+b} fdA \Bigg \vert &amp;lt; \epsilon \qquad \forall t_{i}\in[x_{i-1},x_{i}].\end{align*}
$$

&lt;/center&gt;

&lt;p&gt;  In particular, we let &lt;script type=&quot;math/tex&quot;&gt;t_{i}=\lfloor x_{i}\rfloor&lt;/script&gt; if &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
x_{i-1}&lt;\lfloor x_{i}\rfloor &lt; x_{i} %]]&gt;&lt;/script&gt;. Thus,&lt;/p&gt;

&lt;center&gt;
$$
\sum_{i=1}^{n} f(t_i)\big [ A(x_i)- A(x_{i-1})\big ]=\sum_{i=1}^{N} f(i)\big [ A(i)- A(i-1)\big ].
$$
&lt;/center&gt;

&lt;p&gt;  Hence,&lt;/p&gt;
&lt;center&gt;
$$
\begin{align*}	\Bigg \vert \sum_{i=1}^{n} f(t_i)\big [ A(x_i)- A(x_{i-1})\big ] - \int_{1-a}^{N+b} fdA \Bigg \vert=    \Bigg \vert \sum_{i=1}^{N} f(i)\big [ A(i)- A(i-1)\big ] - \int_{1-a}^{N+b} fdA \Bigg \vert &amp;lt; \epsilon.\end{align*}
$$
&lt;/center&gt;

&lt;p&gt;  Since &lt;script type=&quot;math/tex&quot;&gt;\epsilon&lt;/script&gt; is arbitrary, we get&lt;/p&gt;

&lt;center&gt;
$$
\begin{align*}    \sum_{i=1}^{N} f(i)\big [ A(i)- A(i-1)\big ] =\int_{1-a}^{N+b} fdA.\end{align*}
$$
&lt;/center&gt;
&lt;p&gt;  Finally, letting &lt;script type=&quot;math/tex&quot;&gt;N+b \rightarrow N^{+}&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;1-a \rightarrow 1^{-}&lt;/script&gt;, we obtain&lt;/p&gt;

&lt;center&gt;
$$
\begin{align*}    \sum_{i=1}^{N} f(i)\big [ A(i)- A(i-1)\big ] =\int_{1^{-}}^{N^{+}} fdA,\end{align*}
$$
&lt;/center&gt;
&lt;p&gt;which is the desired result.&lt;/p&gt;

&lt;p&gt;(Afterwards I discovered that &lt;script type=&quot;math/tex&quot;&gt;1^{-}&lt;/script&gt; denotes &lt;script type=&quot;math/tex&quot;&gt;1-\epsilon&lt;/script&gt;, where &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt; is arbitrarily small and &lt;script type=&quot;math/tex&quot;&gt;N^{+}&lt;/script&gt; denotes &lt;script type=&quot;math/tex&quot;&gt;N+\epsilon&lt;/script&gt;, where &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt; is arbitrarily small, according to the other answer of the author. The idea of the proof remains unchanged, though.)&lt;/p&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">linear transformations and derivatives(FUNCTIONS OF SERVERAL VARIABLES)</title><link href="/about%20math/2019/11/16/linear-transformations-and-derivatives.html" rel="alternate" type="text/html" title="linear transformations and derivatives(FUNCTIONS OF SERVERAL VARIABLES)" /><published>2019-11-16T00:00:00+00:00</published><updated>2019-11-16T00:00:00+00:00</updated><id>/about%20math/2019/11/16/linear-transformations-and-derivatives</id><content type="html" xml:base="/about%20math/2019/11/16/linear-transformations-and-derivatives.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;&lt;strong&gt;Linear transformations&lt;/strong&gt; A mapping &lt;script type=&quot;math/tex&quot;&gt;L&lt;/script&gt; from a vector space &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt; into a vector space &lt;script type=&quot;math/tex&quot;&gt;W&lt;/script&gt; is said to be a &lt;i&gt;linear transformation&lt;/i&gt; if&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	L(\alpha \textbf{v}_{1}+\beta \textbf{v}_{2})=    	\alpha L(\textbf{v}_{1})+\beta L(\textbf{v}_{2})	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;for all &lt;script type=&quot;math/tex&quot;&gt;\textbf{v}_{1} ,\textbf{v}_{2} \in V&lt;/script&gt; and for all scalars &lt;script type=&quot;math/tex&quot;&gt;\alpha&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;\beta&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  In fact, for every linear transformation there exists a matrix corresponding to it.&lt;/p&gt;

&lt;p&gt;  Consider a linear transformation &lt;script type=&quot;math/tex&quot;&gt;L&lt;/script&gt; from &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt; into &lt;script type=&quot;math/tex&quot;&gt;W&lt;/script&gt;, where &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;W&lt;/script&gt; are vector spaces of dimension &lt;script type=&quot;math/tex&quot;&gt;n&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;m&lt;/script&gt;, respectively. Let &lt;script type=&quot;math/tex&quot;&gt;E=\{\textbf{v}_{1} ,\textbf{v}_{2}, \dots, \textbf{v}_{n}\}&lt;/script&gt; be an ordered basis for &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;F=\{\textbf{w}_{1} ,\textbf{w}_{2}, \dots, \textbf{w}_{m}\}&lt;/script&gt; be an ordered basis for &lt;script type=&quot;math/tex&quot;&gt;W&lt;/script&gt;. Let &lt;script type=&quot;math/tex&quot;&gt;L&lt;/script&gt; be a linear transformation mapping &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt; into &lt;script type=&quot;math/tex&quot;&gt;W&lt;/script&gt;. If &lt;script type=&quot;math/tex&quot;&gt;\textbf{v}&lt;/script&gt; is any vector in &lt;script type=&quot;math/tex&quot;&gt;V&lt;/script&gt;, then we can express &lt;script type=&quot;math/tex&quot;&gt;\textbf{v}&lt;/script&gt; in terms of the basis &lt;script type=&quot;math/tex&quot;&gt;E&lt;/script&gt;:&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\textbf{v}=\sum_{j=1}^{n}x_{j} \textbf{v}_{j}.	\end{aligned}\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;  For &lt;script type=&quot;math/tex&quot;&gt;j=1,2,\dots,n&lt;/script&gt;, let &lt;script type=&quot;math/tex&quot;&gt;\textbf{a}_{j}=(a_{1j},a_{2j},\dots,a_{mj})^{T}&lt;/script&gt; be the coordinate vector of  &lt;script type=&quot;math/tex&quot;&gt;L(\textbf{v}_{j})&lt;/script&gt; with respect to &lt;script type=&quot;math/tex&quot;&gt;\{\textbf{w}_{1} ,\textbf{w}_{2}, \dots, \textbf{w}_{m}\}&lt;/script&gt;; i.e.,&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	L(\textbf{v}_{j})=\sum_{k=1}^{m}a_{kj} \textbf{w}_{k}.	\end{aligned}\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;Then,&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	L(\textbf{v})&amp;amp;=L(\sum_{j=1}^{n}x_{j} \textbf{v}_{j}) \\    	&amp;amp;=\sum_{j=1}^{n}x_{j}L(\textbf{v}_{j}) \\    	&amp;amp;=\sum_{j=1}^{n}x_{j}(\sum_{k=1}^{m}a_{kj} \textbf{w}_{k}) \\    	&amp;amp;=\sum_{k=1}^{m}(\sum_{j=1}^{n}x_{j}a_{kj}) \textbf{w}_{k}.	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;  If we let &lt;script type=&quot;math/tex&quot;&gt;A=(a_{ij})=(\textbf{a}_{1},\textbf{a}_{2},\dots,\textbf{a}_{n})&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;y_{i}=\sum_{j=1}^{n}x_{j}a_{kj}&lt;/script&gt;, then&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\textbf{y}_{i}=(y_{1},y_{2},\dots,y_{m})^{T}=A\textbf{x}	\end{aligned}\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;is the coordinate vector of &lt;script type=&quot;math/tex&quot;&gt;L(\textbf{v})&lt;/script&gt; with respect to &lt;script type=&quot;math/tex&quot;&gt;\{\textbf{w}_{1} ,\textbf{w}_{2}, \dots, \textbf{w}_{m}\}&lt;/script&gt;. We therefore find a corresponding matrix &lt;script type=&quot;math/tex&quot;&gt;A&lt;/script&gt; to &lt;script type=&quot;math/tex&quot;&gt;L(V,W)&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Derivatives&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;  If &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is a real function with domain &lt;script type=&quot;math/tex&quot;&gt;(a,b) \subset R^{1}&lt;/script&gt; and if &lt;script type=&quot;math/tex&quot;&gt;x\in (a,b)&lt;/script&gt;, then &lt;script type=&quot;math/tex&quot;&gt;f'(x)&lt;/script&gt; is usually defined to be the real number&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\lim_{h\rightarrow0} \frac{f(x+h)-f(x)}{h},	\end{aligned}\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;provided, of course, that the limit exists. Thus&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	f(x+h)-f(x)=f'(x)h+r(h)	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;where the “remainder” &lt;script type=&quot;math/tex&quot;&gt;r(h)&lt;/script&gt; is small, in the sense that&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\lim_{h\rightarrow0} \frac{r(h)}{h}=0.	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;  Note that the equality above might indicate that the difference &lt;script type=&quot;math/tex&quot;&gt;f(x+h)-f(x)&lt;/script&gt; could be approximated by a &lt;i&gt;linear function&lt;/i&gt; &lt;script type=&quot;math/tex&quot;&gt;f'(x)h&lt;/script&gt;. The point is, we could also regard the derivative of &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt;, this linear function, as a &lt;i&gt;linear operator&lt;/i&gt; on &lt;script type=&quot;math/tex&quot;&gt;R^{1}&lt;/script&gt; which takes &lt;script type=&quot;math/tex&quot;&gt;h&lt;/script&gt; to &lt;script type=&quot;math/tex&quot;&gt;f'(x)h&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  Then we can naturally extend the concept of derivative to a higher dimensional space. In this case the derivative of function &lt;script type=&quot;math/tex&quot;&gt;\textbf{f}&lt;/script&gt; should be a linear transformation, or, equivalently, a matrix.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;9.11 Definition&lt;/b&gt; Suppose &lt;script type=&quot;math/tex&quot;&gt;E&lt;/script&gt; is an open set in &lt;script type=&quot;math/tex&quot;&gt;R^{n}&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;\textbf{f}&lt;/script&gt; maps &lt;script type=&quot;math/tex&quot;&gt;E&lt;/script&gt; into &lt;script type=&quot;math/tex&quot;&gt;R^{m}&lt;/script&gt;, and &lt;script type=&quot;math/tex&quot;&gt;\textbf{x}\in E&lt;/script&gt;. If there exists a linear transformation &lt;script type=&quot;math/tex&quot;&gt;A&lt;/script&gt; of &lt;script type=&quot;math/tex&quot;&gt;R^{n}&lt;/script&gt; into &lt;script type=&quot;math/tex&quot;&gt;R^{m}&lt;/script&gt; such that&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\lim_{\textbf{h}\rightarrow0}     	\frac{\vert \textbf{f}(\textbf{x}+\textbf{h})-    	\textbf{f}(\textbf{x})-    	A\textbf{h}\vert}    	{\vert\textbf{h}\vert}=\textbf{0},	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;then we say that &lt;script type=&quot;math/tex&quot;&gt;\textbf{f}&lt;/script&gt; is &lt;i&gt;differentiable&lt;/i&gt; at &lt;script type=&quot;math/tex&quot;&gt;\textbf{x}&lt;/script&gt;, and we write&lt;/p&gt;

&lt;center&gt;
$$
\begin{equation}    	\begin{aligned}          	\textbf{f}'(\textbf{x})=A.	\end{aligned}\end{equation}
$$
&lt;/center&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">a problem arised when using mathematical induction</title><link href="/about%20math/2019/10/30/a-problem-arised-when-using-mathematical-induction.html" rel="alternate" type="text/html" title="a problem arised when using mathematical induction" /><published>2019-10-30T00:00:00+00:00</published><updated>2019-10-30T00:00:00+00:00</updated><id>/about%20math/2019/10/30/a-problem-arised-when-using-mathematical-induction</id><content type="html" xml:base="/about%20math/2019/10/30/a-problem-arised-when-using-mathematical-induction.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;  When I was tring to work out the proof of 
&lt;a href=&quot;https://tuzhong007.github.io/about%20math/2019/10/26/relation-between-some-double-sequnces-and-series-of-functions.html&quot;&gt;the theorem 8.3(Dominated convergence theorem)&lt;/a&gt;, in one step I applied the mathematical induction to show that&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}	\sum_{i=1}^{\infty}\sum_{j=1}^{n}a_{i,j}	=\sum_{j=1}^{n}\sum_{i=1}^{\infty}a_{i,j}.\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;  Then it occurs to me, that why can’t I just simply letting &lt;script type=&quot;math/tex&quot;&gt;n\rightarrow \infty&lt;/script&gt; and get the intended result? After thinking for a while(referring to 4 days), I maybe understood eventually. The reason is that when &lt;script type=&quot;math/tex&quot;&gt;n\rightarrow \infty&lt;/script&gt;, the series must include infinitely many terms. And since there is not an &lt;script type=&quot;math/tex&quot;&gt;n&lt;/script&gt; s.t. &lt;script type=&quot;math/tex&quot;&gt;n+1=\infty&lt;/script&gt;, the situation where the series includes infinitely many terms can’t be reached by the recursion process of the mathematical induction.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">relations between some double sequences and series of functions(SEQUENCE AND SERIES OF FUNCTIONS)</title><link href="/about%20math/2019/10/26/relations-between-some-double-sequences-and-series-of-functions.html" rel="alternate" type="text/html" title="relations between some double sequences and series of functions(SEQUENCE AND SERIES OF FUNCTIONS)" /><published>2019-10-26T00:00:00+00:00</published><updated>2019-10-26T00:00:00+00:00</updated><id>/about%20math/2019/10/26/relations-between-some-double-sequences-and-series-of-functions</id><content type="html" xml:base="/about%20math/2019/10/26/relations-between-some-double-sequences-and-series-of-functions.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;&lt;strong&gt;8.3 Theorem&lt;/strong&gt; &lt;i&gt; Given a double sequence &lt;script type=&quot;math/tex&quot;&gt;\{a_{i,j}\}&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;i=1,2,3,\ldots, j=1,2,3,\ldots,&lt;/script&gt; suppose that &lt;/i&gt;&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\sum_{j=1}^{\infty}\vert a_{i,j}\vert=b_i\hspace{1cm}(i=1,2,3,\ldots)\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;&lt;i&gt;and &lt;script type=&quot;math/tex&quot;&gt;\sum b_i&lt;/script&gt; converges. Then&lt;/i&gt;&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}	\sum_{i=1}^{\infty}\sum_{j=1}^{\infty}a_{i,j}=	\sum_{j=1}^{\infty}\sum_{i=1}^{\infty}a_{i,j}.\end{equation}
$$
&lt;/center&gt;

&lt;p&gt;&lt;strong&gt;Proof&lt;/strong&gt; Let &lt;script type=&quot;math/tex&quot;&gt;E&lt;/script&gt; be a countable set, consisting of the points &lt;script type=&quot;math/tex&quot;&gt;x_0, x_1, x_2, \ldots,&lt;/script&gt; and suppose &lt;script type=&quot;math/tex&quot;&gt;x_{n} \rightarrow  x_{0}&lt;/script&gt; as &lt;script type=&quot;math/tex&quot;&gt;n \rightarrow \infty&lt;/script&gt;. Define&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\begin{aligned}		f_i(x_n)&amp;amp;=\sum_{j=1}^{n}a_{i,j} \hspace{1cm}(i,n=1,2,3,\ldots),\\		f_i(x_0)&amp;amp;=\sum_{j=1}^{\infty}a_{i,j} \hspace{1cm}(i=1,2,3,\ldots),\\		g(x)&amp;amp;=\sum_{i=1}^{\infty}f_{i}(x) \hspace{1cm}(x\in E).	\end{aligned}\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;And they are pretty well-defined. Since&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\lim_{n\rightarrow\infty} f_i(x_n)=f_i(x_0)\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\lim_{n \rightarrow \infty}x_n=x_0,\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;&lt;script type=&quot;math/tex&quot;&gt;f_i&lt;/script&gt; is continuous at &lt;script type=&quot;math/tex&quot;&gt;x_{0}&lt;/script&gt;. In addition, since&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	f_i(x_0)\leq \sum_{j=1}^{\infty}\vert a_{i,j}\vert=b_i\hspace{1cm}(i=1,2,3,\ldots),\\	f_i(x_n)\leq \sum_{j=1}^{\infty}\vert a_{i,j}\vert=b_i\hspace{1cm}(i=1,2,3,\ldots),\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;and  &lt;script type=&quot;math/tex&quot;&gt;\sum b_i&lt;/script&gt; converges, we know that &lt;script type=&quot;math/tex&quot;&gt;g(x)=\sum f_i&lt;/script&gt; converges uniformly, thus &lt;script type=&quot;math/tex&quot;&gt;g&lt;/script&gt; is continuous at &lt;script type=&quot;math/tex&quot;&gt;x_{0}&lt;/script&gt; too. The continuity of &lt;script type=&quot;math/tex&quot;&gt;g&lt;/script&gt; implies that&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\begin{aligned}		\lim_{n \rightarrow  \infty}g(x_n)&amp;amp;=g(x_0), \\		g(x_0)=\sum_{i=1}^{\infty}\sum_{j=1}^{\infty}a_{i,j}&amp;amp;=\lim_{n \rightarrow  \infty}g(x_n)=\lim_{n \rightarrow  \infty}\sum_{i=1}^{\infty}\sum_{j=1}^{n}a_{i,j}.	\end{aligned}\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;  Note that&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	g(x_n)=\sum_{i=1}^{\infty}\sum_{j=1}^{n}a_{i,j}	=\sum_{j=1}^{n}\sum_{i=1}^{\infty}a_{i,j},\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;which can be proved by using the mathematical induction.&lt;/p&gt;

&lt;p&gt;  Firstly, it’s obivious that the equation is correct when &lt;script type=&quot;math/tex&quot;&gt;n=1&lt;/script&gt;. Assume that it holds for &lt;script type=&quot;math/tex&quot;&gt;n=k(k\in N^{*})&lt;/script&gt;. i.e.,&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	g(x_k)=\sum_{i=1}^{\infty}\sum_{j=1}^{k}a_{i,j}=	\sum_{j=1}^{k}\sum_{i=1}^{\infty}a_{i,j},\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;and then consider the situation where &lt;script type=&quot;math/tex&quot;&gt;n=k+1&lt;/script&gt;. Since&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\begin{aligned}		g(x_{k+1})&amp;amp;=\sum_{i=1}^{\infty}\sum_{j=1}^{k+1}a_{i,j}=		\sum_{i=1}^{\infty}\sum_{j=1}^{k}a_{i,j}+\sum_{i=1}^{\infty}a_{i,k+1}\\		&amp;amp;=\sum_{j=1}^{k}\sum_{i=1}^{\infty}a_{i,j}+\sum_{i=1}^{\infty}a_{i,k+1}\\		&amp;amp;=\sum_{j=1}^{k+1}\sum_{i=1}^{\infty}a_{i,j},	\end{aligned}\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;hence we conclude that&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	g(x_n)=\sum_{i=1}^{\infty}\sum_{j=1}^{n}a_{i,j}	=\sum_{j=1}^{n}\sum_{i=1}^{\infty}a_{i,j}.\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;  Thus,&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\begin{aligned}		g(x_0)=\sum_{i=1}^{\infty}\sum_{j=1}^{\infty}a_{i,j}&amp;amp;=\lim_{n \rightarrow  \infty}g(x_n)=\lim_{n \rightarrow  \infty}\sum_{i=1}^{\infty}\sum_{j=1}^{n}a_{i,j}\\		&amp;amp;=\lim_{n \rightarrow  \infty}\sum_{j=1}^{n}\sum_{i=1}^{\infty}a_{i,j}\\		&amp;amp;=\sum_{j=1}^{\infty}\sum_{i=1}^{\infty}a_{i,j},	\end{aligned}\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;i.e.,&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}	\sum_{i=1}^{\infty}\sum_{j=1}^{\infty}a_{i,j}=	\sum_{j=1}^{\infty}\sum_{i=1}^{\infty}a_{i,j}.\end{equation}
$$

&lt;/center&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">Inclusion-exclusion</title><link href="/about%20cs/2019/10/06/Inclusion_and_exclusion.html" rel="alternate" type="text/html" title="Inclusion-exclusion" /><published>2019-10-06T00:00:00+00:00</published><updated>2019-10-06T00:00:00+00:00</updated><id>/about%20cs/2019/10/06/Inclusion_and_exclusion</id><content type="html" xml:base="/about%20cs/2019/10/06/Inclusion_and_exclusion.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;
&lt;p&gt;  The principle of inclusion-exclusion provides us with a technique for solving problems like couting. For example, how many numbers not exceeding &lt;script type=&quot;math/tex&quot;&gt;1000&lt;/script&gt; are divisible by &lt;script type=&quot;math/tex&quot;&gt;7&lt;/script&gt; or &lt;script type=&quot;math/tex&quot;&gt;11&lt;/script&gt;?&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;solution&lt;/i&gt;: Let &lt;script type=&quot;math/tex&quot;&gt;A&lt;/script&gt; be the set of positive numbers which are not exceeding &lt;script type=&quot;math/tex&quot;&gt;1000&lt;/script&gt; and divisible by 7, and let &lt;script type=&quot;math/tex&quot;&gt;B&lt;/script&gt; be the set of positive numbers which are not exceeding &lt;script type=&quot;math/tex&quot;&gt;1000&lt;/script&gt; and divisible by 11. Define &lt;script type=&quot;math/tex&quot;&gt;\vert A\vert&lt;/script&gt; to be the number of elements in &lt;script type=&quot;math/tex&quot;&gt;A&lt;/script&gt;, we have&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
    \begin{aligned}
        \vert A\cup B\vert&amp;amp;=\vert A\vert+\vert B\vert-\vert A\cap B\vert \\
        &amp;amp;=\lfloor \frac{1000}{7}\rfloor+\lfloor \frac{1000}{11}\rfloor-\lfloor \frac{1000}{7\times11}\rfloor \\
        &amp;amp;=220.
    \end{aligned}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;  Thus, the answer should be &lt;script type=&quot;math/tex&quot;&gt;220&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  In fact, there’s a theorem.
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Theorem(The principle of inclusion-exclusion) &lt;/strong&gt; Let &lt;script type=&quot;math/tex&quot;&gt;A_1, A_2, \dots, A_n&lt;/script&gt; be finite sets. Then&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
    \begin{aligned}
    	\vert\bigcup_{i=1}^{n}A_i\vert&amp;amp;=\sum_{1\le i\le n}\vert A_i\vert -\sum_{1\le i&amp;lt;j\le n}\vert A_i\cap A_j\vert\\
    	&amp;amp;+\sum_{1\le i&amp;lt;j&amp;lt;k\le n}\vert A_i\cap A_j\cap A_k\vert-\cdots+(-1)^{n}\vert \bigcap_{i=1}^{n}A_i\vert.
    \end{aligned}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;&lt;strong&gt;Sample&lt;/strong&gt;: &lt;a href=&quot;https://codeforces.com/contest/1228/problem/E&quot;&gt;[codeforces 1228E]Another filling the grid&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  Let &lt;script type=&quot;math/tex&quot;&gt;S_{i,j}&lt;/script&gt; be a collection of situations with i rows and j colomns do not satisfy the condition, that is, for every grid in this i rows or j colomns, its value should be greater than 1. We could use a fomular to calculate this &lt;script type=&quot;math/tex&quot;&gt;\vert S_{i,j}\vert&lt;/script&gt;:&lt;/p&gt;

&lt;center&gt;

$$
\vert S_{i,j}\vert=C_{n}^{i}\times C_{n}^{j}\times (k-1)^{n(i+j)-ij}\times (k-1)^{n^2-n(i+j)+ij}
$$

&lt;/center&gt;

&lt;p&gt;  Now we want to obtain &lt;script type=&quot;math/tex&quot;&gt;\vert \bigcup_{i,j}S_{i,j}\vert&lt;/script&gt;. By observation, we know that &lt;script type=&quot;math/tex&quot;&gt;S_{i,j}=S_{i,0}\cap S_{0,j}&lt;/script&gt;,  &lt;script type=&quot;math/tex&quot;&gt;S_{i,0}\subset S_{j,0}&lt;/script&gt; if &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
j&lt;i %]]&gt;&lt;/script&gt;,  &lt;script type=&quot;math/tex&quot;&gt;S_{0,i}\subset S_{0,j}&lt;/script&gt; if &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
j&lt;i %]]&gt;&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;S_{i,j}\cap S_{k,l}=S_{i,0}\cap S_{0,j}\cap S_{k,0}\cap S_{0,l}=S_{max(i,k),max(j,l)}&lt;/script&gt;. In additional, given the theorem, we can figure out that every  &lt;script type=&quot;math/tex&quot;&gt;S_{i,j}&lt;/script&gt; contributes to &lt;script type=&quot;math/tex&quot;&gt;\vert \bigcup_{i,j}S_{i,j}\vert&lt;/script&gt; with the coefficient &lt;script type=&quot;math/tex&quot;&gt;(-1)^{i+j}&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  Then apply the theorem, we get&lt;/p&gt;

&lt;center&gt;

$$
\vert \bigcup_{i,j}S_{i,j}\vert=\sum_{i=0}^{n}\sum_{j=0}^{n}(-1)^{i+j}\times C_{n}^{i}\times C_{n}^{j}\times (k-1)^{n(i+j)-ij}\times (k-1)^{n^2-n(i+j)+ij},
$$

&lt;/center&gt;

&lt;p&gt;note that &lt;script type=&quot;math/tex&quot;&gt;\vert S_{0,0}\vert&lt;/script&gt;, by fomular, equals to &lt;script type=&quot;math/tex&quot;&gt;k^n&lt;/script&gt;, which is the total number of ways to fill the grid. And therefore the answer would be this &lt;script type=&quot;math/tex&quot;&gt;\vert \bigcup_{i,j}S_{i,j}\vert&lt;/script&gt;. The time complexity of the algorithm should be &lt;script type=&quot;math/tex&quot;&gt;O(n^{2}logn)&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  The answer is required to take mod. The law of addition and multiplication under mod operation is well known. But this time we used the formular &lt;script type=&quot;math/tex&quot;&gt;C_{n}^{i}=\frac{n!}{(n-i)!i!}&lt;/script&gt; to calculate combination, hence the inverse of an element is needed. There is a trick to find the inverse of an element: applying Fermat’s little theorem,&lt;/p&gt;

&lt;center&gt;

$$
a^{p-1}\equiv1(mod \hspace{0.2cm}p)
$$

&lt;/center&gt;

&lt;p&gt;where &lt;script type=&quot;math/tex&quot;&gt;p&lt;/script&gt; is prime, &lt;script type=&quot;math/tex&quot;&gt;(a,p)=1&lt;/script&gt;. Thus,&lt;/p&gt;

&lt;center&gt;

$$
a\times a^{p-2}\equiv 1(mod \hspace{0.2cm}p)
$$

&lt;/center&gt;

&lt;p&gt;i.e., &lt;script type=&quot;math/tex&quot;&gt;a^{p-2}&lt;/script&gt; is the inverse of &lt;script type=&quot;math/tex&quot;&gt;a&lt;/script&gt;.
&lt;br /&gt;
&lt;br /&gt;
my code:&lt;/p&gt;
&lt;div class=&quot;language-c++ highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#include&amp;lt;bits/stdc++.h&amp;gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;1e9&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;typedef&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;namespace&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NT&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pw&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bas&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
			&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bas&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
			&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;bas&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bas&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bas&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ginv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pw&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Com&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Ans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;getfac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;getCom&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cur&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ginv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]));&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;cur&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cur&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ginv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]));&lt;/span&gt;
			&lt;span class=&quot;n&quot;&gt;Com&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cur&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//			printf(&quot;%lld &quot;,Com[i]);&lt;/span&gt;
		&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;getAns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
		&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
			&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coe&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coe&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Com&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Com&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]);&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;k_1p&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pw&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;ll&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;kp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pw&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k_1p&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;Ans&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Ans&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coe&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sij&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//				printf(&quot;%lld &quot;,sij*coe);&lt;/span&gt;
			&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
		&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;work&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;getfac&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;getCom&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;getAns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
		&lt;span class=&quot;n&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;%lld&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Ans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
	&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;namespace&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NT&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;scanf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;%d%d&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;work&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
	&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;// printf(&quot;%lld&quot;,);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about cs" /><summary type="html">  The principle of inclusion-exclusion provides us with a technique for solving problems like couting. For example, how many numbers not exceeding are divisible by or ?</summary></entry><entry><title type="html">norm space(SEQUENCE AND SERIES OF FUNCTIONS)</title><link href="/about%20math/2019/09/29/norm_space.html" rel="alternate" type="text/html" title="norm space(SEQUENCE AND SERIES OF FUNCTIONS)" /><published>2019-09-29T00:00:00+00:00</published><updated>2019-09-29T00:00:00+00:00</updated><id>/about%20math/2019/09/29/norm_space</id><content type="html" xml:base="/about%20math/2019/09/29/norm_space.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt; After studying some global properties of series of functions, the concept of norm space furnished a new version to describe them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.14 Definition&lt;/strong&gt; If &lt;script type=&quot;math/tex&quot;&gt;X&lt;/script&gt; is a metric space, &lt;script type=&quot;math/tex&quot;&gt;\mathscr{C}(X)&lt;/script&gt; will denote the set of all complex-valued, continuous, bounded    functions with domain &lt;script type=&quot;math/tex&quot;&gt;X&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;  We associate with each &lt;script type=&quot;math/tex&quot;&gt;f\in\mathscr{C}(X)&lt;/script&gt; its &lt;i&gt;supremum norm&lt;/i&gt;&lt;/p&gt;

&lt;center&gt;

$$
\Vert f\Vert=\sup\limits_{x\in X}\vert f(x)\vert.
$$

&lt;/center&gt;

&lt;p&gt;If &lt;script type=&quot;math/tex&quot;&gt;h=f+g&lt;/script&gt;, then&lt;/p&gt;

&lt;center&gt;

$$
\vert h(x)\vert \leq \vert f(x)\vert+\vert g(x)\vert\leq \vert f\vert+\vert g\vert
$$

&lt;/center&gt;

&lt;p&gt;for all &lt;script type=&quot;math/tex&quot;&gt;x\in X&lt;/script&gt;. Hence&lt;/p&gt;

&lt;center&gt;

$$
\Vert f+g\Vert \leq \Vert f\Vert+\Vert g\Vert.
$$

&lt;/center&gt;

&lt;p&gt;  If we define the distance between &lt;script type=&quot;math/tex&quot;&gt;f\in\mathscr{C}(X)&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;g\in\mathscr{C}(X)&lt;/script&gt; to be &lt;script type=&quot;math/tex&quot;&gt;\Vert f-g\Vert&lt;/script&gt;, it follows that &lt;script type=&quot;math/tex&quot;&gt;\mathscr{C}(X)&lt;/script&gt; becomes a metric space.&lt;/p&gt;

&lt;p&gt;  A new version mentioned above, is that we can restate some previous theorems as follows:&lt;/p&gt;

&lt;p&gt;  &lt;i&gt;A sequence &lt;script type=&quot;math/tex&quot;&gt;\{f_n\}&lt;/script&gt; converges to f with respect to the metric of &lt;script type=&quot;math/tex&quot;&gt;\mathscr{C}(X)&lt;/script&gt; if and only if &lt;script type=&quot;math/tex&quot;&gt;f_n\rightarrow f&lt;/script&gt; uniformly on &lt;script type=&quot;math/tex&quot;&gt;X&lt;/script&gt;.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;  This is an example of the &lt;i&gt;supremum norm&lt;/i&gt;.  We could also define some different norms, like:&lt;/p&gt;

&lt;center&gt;


$$
\Vert f\Vert=(\int_{0}^{1}\vert f(x)\vert^{p}dx)^{1/p},
$$
&lt;/center&gt;

&lt;p&gt;where &lt;script type=&quot;math/tex&quot;&gt;X=[0,1]&lt;/script&gt;.&lt;/p&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">philosophy of some proof(THE RIEMANN-STIETJES INTEGRAL)</title><link href="/about%20math/2019/09/01/CI_Riemann_Integral.html" rel="alternate" type="text/html" title="philosophy of some proof(THE RIEMANN-STIETJES INTEGRAL)" /><published>2019-09-01T00:00:00+00:00</published><updated>2019-09-01T00:00:00+00:00</updated><id>/about%20math/2019/09/01/CI_Riemann_Integral</id><content type="html" xml:base="/about%20math/2019/09/01/CI_Riemann_Integral.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;&lt;strong&gt;6.6 Theorem&lt;/strong&gt; &lt;i&gt;Suppose &lt;script type=&quot;math/tex&quot;&gt;\alpha&lt;/script&gt; is a monotonically increasing function on &lt;script type=&quot;math/tex&quot;&gt;[a,b]&lt;/script&gt;.  f &lt;script type=&quot;math/tex&quot;&gt;\in \mathscr{R}(\alpha)&lt;/script&gt; on &lt;script type=&quot;math/tex&quot;&gt;[a,b]&lt;/script&gt; if and only if for every &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt; there exists a partition P such that&lt;/i&gt;&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
	U(P,f,\alpha)-L(P,f,\alpha)&amp;lt;\epsilon.
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;  This theorem provides a fundamental idea about solving questions like “how to check a function to be Riemann-integrable or not”. By definition, we have&lt;/p&gt;

&lt;center&gt;

$$
U(P,f,\alpha)-L(P,f,\alpha)=\sum\limits_{i=1}^{n}(M_i-m_i)\Delta\alpha_{i},
$$

&lt;/center&gt;

&lt;p&gt;where for a partition P,&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
\begin{aligned}
M_i&amp;amp;=\sup f(x) \hspace{1cm}(x_{i-1}\leq x \leq x_{i}), \\
m_i&amp;amp;=\inf f(x) \hspace{1cm}(x_{i-1}\leq x \leq x_{i}), \\
\Delta\alpha_{i}&amp;amp;=\alpha(x_{i})-\alpha(x_{i-1}).
\end{aligned}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;  Given &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt;. Naturally, we could imagine that if &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is Riemann-integrable, then &lt;script type=&quot;math/tex&quot;&gt;\sum\limits_{i=1}^{n}(M_i-m_i)\Delta\alpha_{i}&lt;/script&gt; should be small enough for some partition P. We hope to construct some P which meet the requirement.&lt;/p&gt;

&lt;p&gt;  There is an idea on constructing a suitable P. For each term, we either make &lt;script type=&quot;math/tex&quot;&gt;(M_i-m_i)&lt;/script&gt; or &lt;script type=&quot;math/tex&quot;&gt;\Delta\alpha_{i}&lt;/script&gt; small. Then this P may suffice.&lt;/p&gt;

&lt;p&gt;  The proof of the theorem below should be an example.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.8 Theorem&lt;/strong&gt; &lt;i&gt;If f is continuous on &lt;script type=&quot;math/tex&quot;&gt;[a, b]&lt;/script&gt; then f &lt;script type=&quot;math/tex&quot;&gt;\in \mathscr{R}(\alpha)&lt;/script&gt; on &lt;script type=&quot;math/tex&quot;&gt;[a,b]&lt;/script&gt;.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Proof&lt;/strong&gt; Given &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt;. Since &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is continuous, and &lt;script type=&quot;math/tex&quot;&gt;[a,b]&lt;/script&gt; is compact, we know &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is uniformly continuous, i.e., given &lt;script type=&quot;math/tex&quot;&gt;\epsilon&gt;0&lt;/script&gt;, there exist a &lt;script type=&quot;math/tex&quot;&gt;\delta&gt;0&lt;/script&gt; such that &lt;script type=&quot;math/tex&quot;&gt;\forall x,y\in [a,b]&lt;/script&gt;, if &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
d(x,y)&lt;\delta %]]&gt;&lt;/script&gt;, then &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
d(f(x),f(y))&lt;\epsilon %]]&gt;&lt;/script&gt;. Hence, if we choose a partition with &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
\Delta\alpha_{i}&lt;\delta %]]&gt;&lt;/script&gt;, then &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
(M_i-m_i)&lt;\epsilon %]]&gt;&lt;/script&gt;. We thus get&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
\begin{aligned}
U(P,f,\alpha)-L(P,f,\alpha)&amp;amp;=\sum\limits_{i=1}^{n}(M_i-m_i)\Delta\alpha_{i} \\
&amp;amp;&amp;lt; \epsilon\sum\limits_{i=1}^{n}\Delta\alpha_{i} \\
&amp;amp;= \epsilon (\alpha(b)-\alpha(a)).
\end{aligned}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;Since &lt;script type=&quot;math/tex&quot;&gt;\epsilon&lt;/script&gt; is arbitrary, for each &lt;script type=&quot;math/tex&quot;&gt;\eta&gt;0&lt;/script&gt;, we pick &lt;script type=&quot;math/tex&quot;&gt;\epsilon&lt;/script&gt; which satisfy the inequality &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
\epsilon (\alpha(b)-\alpha(a))&lt;\eta %]]&gt;&lt;/script&gt; . We finally get&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
\begin{aligned}
U(P,f,\alpha)-L(P,f,\alpha)&amp;lt;\eta,
\end{aligned}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;and therefore &lt;script type=&quot;math/tex&quot;&gt;f\in \mathscr{R(\alpha)}&lt;/script&gt;.&lt;/p&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">test2</title><link href="/about%20math/2019/08/11/test2.html" rel="alternate" type="text/html" title="test2" /><published>2019-08-11T00:00:00+00:00</published><updated>2019-08-11T00:00:00+00:00</updated><id>/about%20math/2019/08/11/test2</id><content type="html" xml:base="/about%20math/2019/08/11/test2.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;I want to display diverse kinds of mathematics formular in this blog, so I will try to work out some exercises of baby rudin as samples.
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Sample 1(exercise 4.2):&lt;/strong&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;If &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is a continuous mapping of a metric space &lt;script type=&quot;math/tex&quot;&gt;X&lt;/script&gt; into a metric space &lt;script type=&quot;math/tex&quot;&gt;Y&lt;/script&gt;, prove that &lt;br /&gt;&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}
	f(\overline{E})\subset \overline{f(E)}
\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;for every set &lt;script type=&quot;math/tex&quot;&gt;E\subset X&lt;/script&gt;. (&lt;script type=&quot;math/tex&quot;&gt;\overline{E}&lt;/script&gt; denotes the closure of &lt;script type=&quot;math/tex&quot;&gt;E&lt;/script&gt;.) Show, by an example, that &lt;script type=&quot;math/tex&quot;&gt;f(\overline{E})&lt;/script&gt; can be a proper subset of &lt;script type=&quot;math/tex&quot;&gt;\overline{f(E)}&lt;/script&gt;.
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br /&gt;
Since &lt;script type=&quot;math/tex&quot;&gt;\overline{f(E)}&lt;/script&gt; is closed, &lt;script type=&quot;math/tex&quot;&gt;f^{-1}[\overline{f(E)}]&lt;/script&gt; is closed. Since 
&lt;script type=&quot;math/tex&quot;&gt;E\subset f^{-1}[\overline{f(E)}]&lt;/script&gt;, we have &lt;script type=&quot;math/tex&quot;&gt;\overline{E}\subset f^{-1}[\overline{f(E)}]&lt;/script&gt;, thus &lt;script type=&quot;math/tex&quot;&gt;f(\overline{E})\subset \overline{f(E)}&lt;/script&gt;.
&lt;br /&gt;
Next, let &lt;script type=&quot;math/tex&quot;&gt;X&lt;/script&gt; and &lt;script type=&quot;math/tex&quot;&gt;Y&lt;/script&gt; be &lt;script type=&quot;math/tex&quot;&gt;R^1&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;E=\{x|x\in N^{*}\}&lt;/script&gt;, and &lt;script type=&quot;math/tex&quot;&gt;f(x)=\frac{1}{x}&lt;/script&gt;. Then &lt;script type=&quot;math/tex&quot;&gt;f&lt;/script&gt; is continuous, and &lt;script type=&quot;math/tex&quot;&gt;f(\overline{E})=\{\frac{1}{x}|x\in N^{*}\}&lt;/script&gt;,  while &lt;script type=&quot;math/tex&quot;&gt;\overline{f(E)}=\{\frac{1}{x}|x\in N^{*}\}\cup \{0\}&lt;/script&gt;. Hence &lt;script type=&quot;math/tex&quot;&gt;f(\overline{E})&lt;/script&gt; is a proper subset of &lt;script type=&quot;math/tex&quot;&gt;\overline{f(E)}&lt;/script&gt;.
&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sample 2(Exercise 3.14 (a)):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If &lt;script type=&quot;math/tex&quot;&gt;s_n&lt;/script&gt; is a complex sequence, define its arithmetic means &lt;script type=&quot;math/tex&quot;&gt;\sigma_n&lt;/script&gt; by&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}
		\sigma _n=\frac{s_0+s_1+\cdot\cdot\cdot+s_n}{n+1}\hspace{1cm} (n=0,1,2,...).
\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;If &lt;script type=&quot;math/tex&quot;&gt;\lim{s_n}=s&lt;/script&gt;, prove that &lt;script type=&quot;math/tex&quot;&gt;\lim{\sigma_n}=s&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Given an &lt;script type=&quot;math/tex&quot;&gt;\epsilon_0&gt;0&lt;/script&gt;.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;script type=&quot;math/tex&quot;&gt;\lim{s_n}=s&lt;/script&gt;, that is to say, &lt;script type=&quot;math/tex&quot;&gt;\forall \epsilon_1&gt;0&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;\exists N_1&gt;0&lt;/script&gt;, s.t. &lt;script type=&quot;math/tex&quot;&gt;\forall n\geq N_1&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
\mid s_n-s\mid &lt;\epsilon_1(1) %]]&gt;&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;We noticed that&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
	|\sigma_n-s|=|\frac{\sum_{i=0}^{n}s_i-s}{n+1}|\leq \frac{\sum_{i=0}^{n}|s_i-s|}{n+1}
\end{equation}
$$

&lt;/center&gt;

&lt;p&gt;We now let &lt;script type=&quot;math/tex&quot;&gt;\epsilon_1=\frac{\epsilon_0}{2}&lt;/script&gt;, and then apply (1). Now we have&lt;/p&gt;

&lt;center&gt;

$$
\begin{equation}
	\begin{aligned}
		|\sigma_n-s|&amp;amp;\leq \frac{\sum_{i=0}^{N_1-1}|s_i-s|+\sum_{i=N_1}^{n}|s_i-s|}{n+1}\\
		&amp;amp;\leq \frac{\sum_{i=0}^{N_1-1}|s_i-s|+(n-N_1+1)\epsilon_1}{n+1}\\
		&amp;amp;\leq \frac{\sum_{i=0}^{N_1-1}|s_i-s|}{n+1}+\frac{\epsilon_0}{2}
	\end{aligned}	
\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;if &lt;script type=&quot;math/tex&quot;&gt;n\geq N_1&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;Put &lt;script type=&quot;math/tex&quot;&gt;A_n=\frac{\sum_{i=0}^{N_1-1}\mid s_i-s \mid}{n+1}&lt;/script&gt;. We can see &lt;script type=&quot;math/tex&quot;&gt;\lim A_n=0&lt;/script&gt;, i.e., &lt;script type=&quot;math/tex&quot;&gt;\forall \epsilon_2&gt;0&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;\exists N_2&gt;0&lt;/script&gt;, s.t. &lt;script type=&quot;math/tex&quot;&gt;\forall n\geq N_2&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
A_n&lt;\epsilon_2(2) %]]&gt;&lt;/script&gt;. Then we let &lt;script type=&quot;math/tex&quot;&gt;\epsilon_2=\frac{\epsilon_0}{2}&lt;/script&gt;, and &lt;script type=&quot;math/tex&quot;&gt;N_0=max\{N_1,N_2\}&lt;/script&gt;. Hence, &lt;script type=&quot;math/tex&quot;&gt;\mid\sigma_n-s\mid \leq A_n+\frac{\epsilon_0}{2}\leq \frac{\epsilon_0}{2}+\frac{\epsilon_0}{2}=\epsilon_0&lt;/script&gt;, if &lt;script type=&quot;math/tex&quot;&gt;n\geq N_0&lt;/script&gt;.&lt;/p&gt;

&lt;p&gt;Thus we obtain the conclusion that &lt;script type=&quot;math/tex&quot;&gt;\forall \epsilon_0&gt;0&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;\exists N_0&gt;0&lt;/script&gt;, s.t. &lt;script type=&quot;math/tex&quot;&gt;\forall n\geq N_0&lt;/script&gt;, &lt;script type=&quot;math/tex&quot;&gt;% &lt;![CDATA[
\mid\sigma_n-s\mid&lt;\epsilon_0 %]]&gt;&lt;/script&gt;, which means that &lt;script type=&quot;math/tex&quot;&gt;\lim{\sigma_n}=s&lt;/script&gt;.&lt;/p&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry><entry><title type="html">test1</title><link href="/about%20math/2019/08/10/test1.html" rel="alternate" type="text/html" title="test1" /><published>2019-08-10T15:45:59+00:00</published><updated>2019-08-10T15:45:59+00:00</updated><id>/about%20math/2019/08/10/test1</id><content type="html" xml:base="/about%20math/2019/08/10/test1.html">&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; async=&quot;&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML&quot;&gt;
    &lt;/script&gt;
&lt;/head&gt;

&lt;p&gt;Try to solve the equation &lt;script type=&quot;math/tex&quot;&gt;x+1=2&lt;/script&gt;:&lt;/p&gt;
&lt;center&gt;
$$
\begin{equation}
	\begin{aligned}
		x+1&amp;amp;=2 \\
		x+1-1&amp;amp;=2-1 \\
		x&amp;amp;=1\\
	\end{aligned}
\end{equation}
$$
&lt;/center&gt;
&lt;p&gt;Then we get &lt;script type=&quot;math/tex&quot;&gt;x=1&lt;/script&gt;.&lt;/p&gt;

&lt;div id=&quot;lv-container&quot; data-id=&quot;city&quot; data-uid=&quot;MTAyMC80Njk4Ni8yMzQ4Ng==&quot;&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	&lt;/script&gt;
&lt;noscript&gt; 为正常使用来必力评论功能请激活JavaScript&lt;/noscript&gt;
&lt;/div&gt;</content><author><name></name></author><category term="about math" /><summary type="html"></summary></entry></feed>