<?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>Comments on: How many numbers are squares mod m</title>
	<atom:link href="http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/</link>
	<description>The blog of John D. Cook</description>
	<lastBuildDate>Sat, 11 Feb 2012 22:42:11 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Algorithms: Links, News, Resources (1) &#171; Angel &#8220;Java&#8221; Lopez on Blog</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-90340</link>
		<dc:creator>Algorithms: Links, News, Resources (1) &#171; Angel &#8220;Java&#8221; Lopez on Blog</dc:creator>
		<pubDate>Tue, 28 Jun 2011 09:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-90340</guid>
		<description>[...] How many numbers are squares mod m http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/ [...]</description>
		<content:encoded><![CDATA[<p>[...] How many numbers are squares mod m <a href="http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/" rel="nofollow">http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoresvit</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-60642</link>
		<dc:creator>Zoresvit</dc:creator>
		<pubDate>Sat, 15 Jan 2011 07:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-60642</guid>
		<description>&lt;i&gt;isOdd(p) can be faster to determine than p != 2.&lt;/i&gt;
Ah, that&#039;s what I was interested about. Thank you!</description>
		<content:encoded><![CDATA[<p><i>isOdd(p) can be faster to determine than p != 2.</i><br />
Ah, that&#8217;s what I was interested about. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-60609</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Sat, 15 Jan 2011 00:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-60609</guid>
		<description>Of course, you can replace isOdd(p) by p != 2. The semantics of the resulting program don&#039;t change (assuming correct input), i.e. it does not really matter.
There is a small difference, though: depending on how p is stored, isOdd(p) can be faster to determine than p != 2.</description>
		<content:encoded><![CDATA[<p>Of course, you can replace isOdd(p) by p != 2. The semantics of the resulting program don&#8217;t change (assuming correct input), i.e. it does not really matter.<br />
There is a small difference, though: depending on how p is stored, isOdd(p) can be faster to determine than p != 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoresvit</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-60599</link>
		<dc:creator>Zoresvit</dc:creator>
		<pubDate>Fri, 14 Jan 2011 22:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-60599</guid>
		<description>As I understand we have pairs (p, n), where p — factor of our module, that is prime, n — it&#039;s power. Out of all prime numbers only 2 is even. Why not just check p if it equals 2 instead? Or it doesn&#039;t matter and was used for generality?</description>
		<content:encoded><![CDATA[<p>As I understand we have pairs (p, n), where p — factor of our module, that is prime, n — it&#8217;s power. Out of all prime numbers only 2 is even. Why not just check p if it equals 2 instead? Or it doesn&#8217;t matter and was used for generality?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-36717</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 21 Apr 2010 12:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-36717</guid>
		<description>Felix: Thanks. I fixed the bug you found.</description>
		<content:encoded><![CDATA[<p>Felix: Thanks. I fixed the bug you found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-31540</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Tue, 26 Jan 2010 01:54:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-31540</guid>
		<description>Hi John,
I think there&#039;s a typo in the code: the second &quot;isOdd( p )&quot; in the function &quot;s&quot; should have been an &quot;isOdd( n )&quot; if I&#039;m right.
    -Felix</description>
		<content:encoded><![CDATA[<p>Hi John,<br />
I think there&#8217;s a typo in the code: the second &#8220;isOdd( p )&#8221; in the function &#8220;s&#8221; should have been an &#8220;isOdd( n )&#8221; if I&#8217;m right.<br />
    -Felix</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lemire</title>
		<link>http://www.johndcook.com/blog/2008/11/19/how-many-numbers-are-squares-mod-m/comment-page-1/#comment-9976</link>
		<dc:creator>Daniel Lemire</dc:creator>
		<pubDate>Thu, 20 Nov 2008 06:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=925#comment-9976</guid>
		<description>Well. In computers, we use fixed-length integers, especially if we want speed. You have either 32 bits or 64 bits. So your statement is false (from a computer programming point of view). We can always tell whether a number is a square from the 32 or 64 bits... ;-) This is not just a common routine, this is a fundamental part of our CPU architecture (which is register-based).

I find it fascinating that one integer out of 6 is a square.</description>
		<content:encoded><![CDATA[<p>Well. In computers, we use fixed-length integers, especially if we want speed. You have either 32 bits or 64 bits. So your statement is false (from a computer programming point of view). We can always tell whether a number is a square from the 32 or 64 bits&#8230; <img src='http://www.johndcook.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  This is not just a common routine, this is a fundamental part of our CPU architecture (which is register-based).</p>
<p>I find it fascinating that one integer out of 6 is a square.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.343 seconds -->

