<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>“Earthson&#039;s Blog”的评论</title>
	<atom:link href="http://www.earthson.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.earthson.net</link>
	<description>即使这个社会已经腐烂，也不意味着我们应该跟着一起腐烂！</description>
	<lastBuildDate>Thu, 29 Dec 2011 04:04:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Earthson 对《Lucas定理推广（组合数取模）》的评论</title>
		<link>http://www.earthson.net/archives/577/comment-page-1#comment-697</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Thu, 29 Dec 2011 04:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=577#comment-697</guid>
		<description>&lt;a href=&quot;#comment-695&quot; rel=&quot;nofollow&quot;&gt;@eggeek &lt;/a&gt; 
最后那句说多了，这个其实和交换群并无关系。其实只要证明除法和乘法逆元等价，就无压力了。你的站改可能来自于对它的更直观理解，个人觉得，这种理解可能不存在。因为存在一个更匪夷所思的性质：只要结果是整数，则运算过程中即使交换了除法顺序，导致中间结果原本是不存在的情况（中间结果原本不是整数），结果也会是对的。</description>
		<content:encoded><![CDATA[<p><a href="#comment-695" rel="nofollow">@eggeek </a><br />
最后那句说多了，这个其实和交换群并无关系。其实只要证明除法和乘法逆元等价，就无压力了。你的站改可能来自于对它的更直观理解，个人觉得，这种理解可能不存在。因为存在一个更匪夷所思的性质：只要结果是整数，则运算过程中即使交换了除法顺序，导致中间结果原本是不存在的情况（中间结果原本不是整数），结果也会是对的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Earthson 对《Lucas定理推广（组合数取模）》的评论</title>
		<link>http://www.earthson.net/archives/577/comment-page-1#comment-696</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Thu, 29 Dec 2011 03:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=577#comment-696</guid>
		<description>&lt;a href=&quot;#comment-695&quot; rel=&quot;nofollow&quot;&gt;@eggeek &lt;/a&gt; 
公式6其实很好理解，关键是对同余的性质深的理解。对于只包含加减乘除的同余式，首先保证原式确实是整数，并且，所有的数和模数互素。&lt;b&gt;则在过程中对任意元素任意取模结果都等价（当然，模数不能是别的^^）&lt;/b&gt;。如果实在无法理解，请把除法看成是乘上逆元（这个过程可逆），并且，乘法情况下，这种等价性我相信你应该很清楚的（也很容易证明）。这个性质自己得好好理解才是，应该可以证明，交换群都有这个性质^^</description>
		<content:encoded><![CDATA[<p><a href="#comment-695" rel="nofollow">@eggeek </a><br />
公式6其实很好理解，关键是对同余的性质深的理解。对于只包含加减乘除的同余式，首先保证原式确实是整数，并且，所有的数和模数互素。<b>则在过程中对任意元素任意取模结果都等价（当然，模数不能是别的^^）</b>。如果实在无法理解，请把除法看成是乘上逆元（这个过程可逆），并且，乘法情况下，这种等价性我相信你应该很清楚的（也很容易证明）。这个性质自己得好好理解才是，应该可以证明，交换群都有这个性质^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>eggeek 对《Lucas定理推广（组合数取模）》的评论</title>
		<link>http://www.earthson.net/archives/577/comment-page-1#comment-695</link>
		<dc:creator>eggeek</dc:creator>
		<pubDate>Fri, 23 Dec 2011 01:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=577#comment-695</guid>
		<description>公式6能不能再说详细点- -
按我的理解是  从大往小数有k/p段被约掉了 剩下k%p段应该是
(n-k +k%p)*...*(n-k+1)
___________________
(k%p)*...*1
这个与c(k%p,n%p) 同余是怎么推出来的？</description>
		<content:encoded><![CDATA[<p>公式6能不能再说详细点- -<br />
按我的理解是  从大往小数有k/p段被约掉了 剩下k%p段应该是<br />
(n-k +k%p)*...*(n-k+1)<br />
___________________<br />
(k%p)*...*1<br />
这个与c(k%p,n%p) 同余是怎么推出来的？</p>
]]></content:encoded>
	</item>
	<item>
		<title>Earthson 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-469</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Fri, 21 Oct 2011 04:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-469</guid>
		<description>&lt;a href=&quot;#comment-394&quot; rel=&quot;nofollow&quot;&gt;@bnuzhanyu &lt;/a&gt; 
不好意思啊，好久没上blog了~ 你那个代码，在init的时候貌似写错了比较多的地方，包括循环参数什么的。
我的代码，好多地方我用参数调的（懒得把循环参数想太清楚，所以就看运行结果，再调一下，看对了就不管了^^），所以有些循环参数看起来会比较别扭~</description>
		<content:encoded><![CDATA[<p><a href="#comment-394" rel="nofollow">@bnuzhanyu </a><br />
不好意思啊，好久没上blog了~ 你那个代码，在init的时候貌似写错了比较多的地方，包括循环参数什么的。<br />
我的代码，好多地方我用参数调的（懒得把循环参数想太清楚，所以就看运行结果，再调一下，看对了就不管了^^），所以有些循环参数看起来会比较别扭~</p>
]]></content:encoded>
	</item>
	<item>
		<title>Earthson 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-468</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Fri, 21 Oct 2011 04:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-468</guid>
		<description>&lt;a href=&quot;#comment-392&quot; rel=&quot;nofollow&quot;&gt;@bnuzhanyu &lt;/a&gt; 
你的代码里面，没有看到inv的初始化哎，只初始化了inv[0]~</description>
		<content:encoded><![CDATA[<p><a href="#comment-392" rel="nofollow">@bnuzhanyu </a><br />
你的代码里面，没有看到inv的初始化哎，只初始化了inv[0]~</p>
]]></content:encoded>
	</item>
	<item>
		<title>Earthson 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-467</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Fri, 21 Oct 2011 04:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-467</guid>
		<description>&lt;a href=&quot;#comment-394&quot; rel=&quot;nofollow&quot;&gt;@bnuzhanyu &lt;/a&gt;
我是直接用的inv[i]是i对MOD的逆，浪费了inv[0]的^^</description>
		<content:encoded><![CDATA[<p><a href="#comment-394" rel="nofollow">@bnuzhanyu </a><br />
我是直接用的inv[i]是i对MOD的逆，浪费了inv[0]的^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>Earthson 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-466</link>
		<dc:creator>Earthson</dc:creator>
		<pubDate>Fri, 21 Oct 2011 04:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-466</guid>
		<description>&lt;a href=&quot;#comment-390&quot; rel=&quot;nofollow&quot;&gt;@bnuzhanyu &lt;/a&gt; 
cof直接用前n+1项初始化~</description>
		<content:encoded><![CDATA[<p><a href="#comment-390" rel="nofollow">@bnuzhanyu </a><br />
cof直接用前n+1项初始化~</p>
]]></content:encoded>
	</item>
	<item>
		<title>bnuzhanyu 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-394</link>
		<dc:creator>bnuzhanyu</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-394</guid>
		<description>不知道怎么回事~ 那一段是inv[0]的值是1，inv[i]的值是i+1对于MOD的逆</description>
		<content:encoded><![CDATA[<p>不知道怎么回事~ 那一段是inv[0]的值是1，inv[i]的值是i+1对于MOD的逆</p>
]]></content:encoded>
	</item>
	<item>
		<title>bnuzhanyu 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-393</link>
		<dc:creator>bnuzhanyu</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-393</guid>
		<description>inv[0] = 1;
	for(i = 1; i = i; j--) {
			cof[j] -= cof[j - 1];
		}
	}</description>
		<content:encoded><![CDATA[<p>inv[0] = 1;<br />
	for(i = 1; i = i; j--) {<br />
			cof[j] -= cof[j - 1];<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>bnuzhanyu 对《差分序列》的评论</title>
		<link>http://www.earthson.net/archives/618/comment-page-1#comment-392</link>
		<dc:creator>bnuzhanyu</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthson.net/?p=618#comment-392</guid>
		<description>好像懂了，不过您的calc函数貌似有点问题。
我改了一下：
int function(int k)
{
    return k*k*k + k*k + 1;
}

void init()
{
	int i, j;
    for(int i=0; i&lt;=order; ++i)
    cof[i] = function(i);//e.g. f(i)=i^4

    inv[0] = 1;
	for(i = 1; i = i; j--) {
			cof[j] -= cof[j - 1];
		}
	}
}

typec calc(typec n)
{
	int i;
	typec res = 0;
	for(i = order; i &gt;= 0; i--) {
		res += cof[i], res %= MOD;
		res *= (n - i + 1 - startfrom) % MOD * inv[i] % MOD;
		res %= MOD;
	}
	while(res &lt; 0) res += MOD;
	return res;
}
欢迎指正~</description>
		<content:encoded><![CDATA[<p>好像懂了，不过您的calc函数貌似有点问题。<br />
我改了一下：<br />
int function(int k)<br />
{<br />
    return k*k*k + k*k + 1;<br />
}</p>
<p>void init()<br />
{<br />
	int i, j;<br />
    for(int i=0; i&lt;=order; ++i)<br />
    cof[i] = function(i);//e.g. f(i)=i^4</p>
<p>    inv[0] = 1;<br />
	for(i = 1; i = i; j--) {<br />
			cof[j] -= cof[j - 1];<br />
		}<br />
	}<br />
}</p>
<p>typec calc(typec n)<br />
{<br />
	int i;<br />
	typec res = 0;<br />
	for(i = order; i &gt;= 0; i--) {<br />
		res += cof[i], res %= MOD;<br />
		res *= (n - i + 1 - startfrom) % MOD * inv[i] % MOD;<br />
		res %= MOD;<br />
	}<br />
	while(res &lt; 0) res += MOD;<br />
	return res;<br />
}<br />
欢迎指正~</p>
]]></content:encoded>
	</item>
</channel>
</rss>

