<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John D. Cook</title>
	<atom:link href="http://www.johndcook.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.johndcook.com/blog</link>
	<description>Applied Mathematics Consulting</description>
	<lastBuildDate>Fri, 04 Dec 2026 15:44:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.johndcook.com/wp-content/uploads/2020/01/cropped-favicon_512-32x32.png</url>
	<title>John D. Cook</title>
	<link>https://www.johndcook.com/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Visualizing post-quantum key sizes</title>
		<link>https://www.johndcook.com/blog/2026/12/04/visualizing-post-quantum-key-sizes/</link>
					<comments>https://www.johndcook.com/blog/2026/12/04/visualizing-post-quantum-key-sizes/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Fri, 04 Dec 2026 15:44:07 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cryptography]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248485</guid>

					<description><![CDATA[<p>Yesterday I posted an image on X that has gotten a lot of views, so I&#8217;ll repost it here. I wanted to visually compare the size of current and post-quantum key sizes, so I generated a pair of keys and saved them in QR codes. Keys were base64 encoded. The ML-KEM-768 private key is bigger [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/04/visualizing-post-quantum-key-sizes/">Visualizing post-quantum key sizes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Yesterday I <a href="https://x.com/JohnDCook/status/2128518729541509151">posted</a> an image on X that has gotten a lot of views, so I&#8217;ll repost it here.</p>
<p>I wanted to visually compare the size of current and post-quantum key sizes, so I generated a pair of keys and saved them in QR codes. Keys were base64 encoded.</p>
<p>The ML-KEM-768 private key is bigger than the maximum QR code and so it splits into two codes.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/pqc_key_sizes.png" width="516" height="726" /></p>
<h2>Related posts</h2>
<ul>
<li class='link'><a href='https://www.johndcook.com/blog/2019/02/22/regression-modular-arithmetic-and-pqc/'>Regression, modular arithmetic, and PQC</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2025/08/30/quantum-bitcoin/'>How quantum computing would affect Bitcoin</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2019/03/18/uov/'>Digital signatures with oil and vinegar</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/12/04/visualizing-post-quantum-key-sizes/">Visualizing post-quantum key sizes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/04/visualizing-post-quantum-key-sizes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Conjugacy class sizes</title>
		<link>https://www.johndcook.com/blog/2026/12/04/markel-s3/</link>
					<comments>https://www.johndcook.com/blog/2026/12/04/markel-s3/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Fri, 04 Dec 2026 15:08:36 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Group theory]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248483</guid>

					<description><![CDATA[<p>Two elements a and b in a group G are conjugate if there exists some element g in G such that a = g−1bg. A set of elements all conjugate to each other forms a conjugacy class. Abelian groups Each element of an Abelian group is in a conjugacy class of its own: g−1bg = g−1gb = b. Things are more interesting [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/04/markel-s3/">Conjugacy class sizes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Two elements <em>a</em> and <em>b</em> in a group <em>G</em> are conjugate if there exists some element <em>g</em> in <em>G</em> such that</p>
<p style="padding-left: 40px;"><em>a</em> = <em>g</em><sup>−1</sup><em>bg</em>.</p>
<p>A set of elements all conjugate to each other forms a conjugacy class.</p>
<h2>Abelian groups</h2>
<p>Each element of an Abelian group is in a conjugacy class of its own:</p>
<p style="padding-left: 40px;"><em>g</em><sup>−1</sup><em>bg</em> = <em>g</em><sup>−1</sup><em>gb</em> = <em>b</em>.</p>
<p>Things are more interesting in a non-Abelian group because the calculation above is not necessarily possible. It <em>might</em> be possible, because <em>b</em> and <em>g</em> might commute, but not all elements commute with each other.</p>
<h2>Quaternion group <em>Q</em></h2>
<p>Let <em>Q</em> be the quaternion group, the set</p>
<p style="padding-left: 40px;">{±1, ±<em>i</em>, ±<em>j</em>, ±<em>k</em>}</p>
<p>with the usual rules for quaternion multiplication:</p>
<p style="padding-left: 40px;"><em>i</em>² = <em>j</em>² = <em>k</em>² = <em>ijk</em> = −1.</p>
<p>Then <em>Q</em> has five conjugacy classes:</p>
<p style="padding-left: 40px;">{1},  {−1},  {±<em>i</em>},  {±<em>j</em>},  {±<em>k</em>}.</p>
<p>Two conjugacy classes have 1 element and three conjugacy classes have 2 elements.</p>
<h2>Symmetric group <em>S</em><sub>3</sub></h2>
<p>Let <em>S</em><sub>3</sub> be the group of all permutations of {1, 2, 3}. Then there are three conjugacy classes:</p>
<p style="padding-left: 40px;">{<i>e</i>},  {(1 2), (1 3), (2 3)},  {(1 2 3), (1 3 2)}.</p>
<p>The first conjugacy class consists of just the identity, the do-nothing permutation. The second conjugacy class consists of transpositions and the third consists of rotations.</p>
<p>Notice that all conjugacy classes have distinct sizes.</p>
<h2>New theorem</h2>
<p>The trivial group {<em>e</em>} and the symmetric group <em>S</em><sub>3</sub> are the only two finite groups with the property that each of the conjugacy classes are a different size.</p>
<p>Marco Damele posted a proof of this theorem <a href="https://arxiv.org/abs/2612.05453">yesterday</a>, formerly known as Markel&#8217;s <em>S</em><sub>3</sub> conjecture.</p>The post <a href="https://www.johndcook.com/blog/2026/12/04/markel-s3/">Conjugacy class sizes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/04/markel-s3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The rehabilitation of a curve</title>
		<link>https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/</link>
					<comments>https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 03 Dec 2026 13:01:50 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Elliptic curves]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248478</guid>

					<description><![CDATA[<p>In the NSA&#8217;s recent announcement urging everyone to adopt post-quantum encryption ASAP, there&#8217;s one little line I&#8217;d like to expand on: Use Curve P-384 for all classification levels. There&#8217;s an interesting story behind this technical detail. The term P-384 means nothing to most people. Maybe the name reminds them of PT-109, a patrol boat commanded [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/">The rehabilitation of a curve</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>In the NSA&#8217;s recent announcement urging everyone to adopt post-quantum encryption ASAP, there&#8217;s one little line I&#8217;d like to expand on:</p>
<blockquote><p>Use Curve P-384 for all classification levels.</p></blockquote>
<p>There&#8217;s an interesting story behind this technical detail.</p>
<p>The term P-384 means nothing to most people. Maybe the name reminds them of PT-109, a patrol boat commanded by future president John F. Kennedy during WWII. (PT-109 subsequently became the title of a book, a movie, a song, and a video game.)</p>
<p>Curve <a href="https://www.johndcook.com/blog/2019/05/11/elliptic-curve-p-384/">P-384</a> is an <a href="https://www.johndcook.com/blog/2019/02/21/what-is-an-elliptic-curve/">elliptic curve</a> designed by NIST for use in cryptography. Keys using this curve have 384 bits. Elliptic curve cryptography commonly uses 256-bit keys, and the NSA is urging everyone to use curves with longer keys.</p>
<p>But why this curve in particular? That&#8217;s the interesting part.</p>
<p>NIST standardized several elliptic curves for cryptography that were designed by the NSA. After the Snowden revelations, researchers became suspicious that the curves may have been designed with a backdoor. (Not without reason: see the story of <a href="https://en.wikipedia.org/wiki/Dual_EC_DRBG">Dual_EC_DRBG</a>.) When asked how the curves were seeded, Jerry Solinas, the man who specified the seeds, said he could not remember exactly how he chose them.</p>
<p>So is the NSA now recommending everyone use an elliptic curve containing a backdoor? Apparently not. A few weeks ago, researchers from <a href="https://www.anthropic.com/research/ecdsa-curve-origins">Anthropic</a> reverse engineered the process used to seed the NIST curves.</p>
<p>AI gives and AI takes away. There&#8217;s a push to accelerate the move to quantum-resistant cryptography due to fears that AI might find algorithms to weaken elliptic curve cryptography. But AI also exonerated the elliptic curve the NSA is recommending everyone use until elliptic curves are replaced by other methods [1].</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2018/08/14/bitcoin-elliptic-curves/">Bitcoin&#8217;s elliptic curve</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2025/11/16/elliptic-curve-pairings/">Elliptic curve pairings</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2025/08/01/jubjub/">Elliptic curves named after words from Lewis Carroll</a></li>
</ul>
<p>[1] The NSA was recommending the move to P-384 before the rise of AI. See, for example, <a href="https://www.johndcook.com/blog/2019/05/23/nsa-recommendations/">this post</a>. The agency now feels the move is more urgent, not because of imminent quantum computing but because AI might find ways to attack elliptic curve cryptography using existing computers.</p>The post <a href="https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/">The rehabilitation of a curve</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Regular primes</title>
		<link>https://www.johndcook.com/blog/2026/12/03/regular-primes/</link>
					<comments>https://www.johndcook.com/blog/2026/12/03/regular-primes/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 03 Dec 2026 11:29:40 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Number theory]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248474</guid>

					<description><![CDATA[<p>Bernoulli numbers often pop up in unexpected places. This post will discuss a connection between Bernoulli numbers and Fermat&#8217;s last theorem. Bernoulli numbers When you take a calculus class and get to Taylor series, you&#8217;ll no doubt see the series for sine and cosine. Maybe the instructor presents the series for sine and you&#8217;re asked [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/03/regular-primes/">Regular primes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Bernoulli numbers often pop up in unexpected places. This post will discuss a connection between Bernoulli numbers and Fermat&#8217;s last theorem.</p>
<h2>Bernoulli numbers</h2>
<p>When you take a calculus class and get to Taylor series, you&#8217;ll no doubt see the series for sine and cosine. Maybe the instructor presents the series for sine and you&#8217;re asked to find the series for cosine as a homework problem. In any case, the terms of the series have a nice simple description.</p>
<p>Then you see the series for tangent. Maybe you&#8217;re asked to find the first three terms as an exercise. But what is the general term? There doesn&#8217;t seem to be an answer.</p>
<p><img decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/sincostan.jpg" alt="sin, cos, tan" width="466" height="375" /></p>
<p>Why don&#8217;t the terms in the series for tangent have a compact description? They do, if you introduce Bernoulli numbers. And what are Bernoulli numbers? Why, they&#8217;re the things that make the series for tangent have a nice form. :)</p>
<p>This makes Bernoulli numbers seem arbitrary, but they&#8217;re not. Bernoulli numbers come up in a wide variety of power series, integrals, combinatorial problems, and elsewhere. Which brings us to Fermat&#8217;s last theorem.</p>
<h2>Fermat&#8217;s last theorem</h2>
<p>Fermat conjectured around 1637 that the equation</p>
<p style="padding-left: 40px;"><em>a</em><sup><em>n</em></sup> + <em>b</em><sup><em>n</em></sup> = <em>c</em><sup><em>n</em></sup></p>
<p>has no solution for integers <em>a</em>, <em>b</em>, <em>c</em> and <em>n</em> with <em>abc</em> ≠ 0 and <em>n</em> &gt; 2. Andrew Wiles proved Fermat&#8217;s conjecture in 1994.</p>
<p>Mathematicians made incremental progress toward proving the conjecture in the three centuries between Fermat and Wiles. In 1850 Ernst Kummer proved Fermat&#8217;s last theorem for most values of <em>n</em>, sorta. He proved FLT for <strong>regular primes</strong>—we&#8217;ll get to what a regular prime is shortly—and Siegel&#8217;s conjecture is that about 60% of primes are regular. Specifically, Siegel conjectured that the natural density of regular primes is 1/√<em>e</em> ≈ 0.6065. If FLT holds for a prime <em>p</em> then it holds for all multiples of <em>p</em>, and so Siegel&#8217;s conjecture would imply the natural density of multiples of regular primes is 1. However, Siegel&#8217;s conjecture has not been proven, and in fact it hasn&#8217;t been proven that there are infinitely many regular primes.</p>
<p>OK, so what are regular primes? There is an abstract definition [1], but a more tangible definition is that an odd prime <em>p</em> is regular if it does not divide the numerator any of the non-zero Bernoulli numbers up to <em>B</em><sub><em>p</em> − 3</sub>.</p>
<p>The first prime that is not regular is 37, and so Kummer proved FLT for 2 &lt; <em>n</em> &lt; 37 and for many values of <em>n</em> &gt; 37.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2018/08/20/ada-lovelace-and-bernoulli-numbers/">Ada Lovelace and Bernoulli numbers</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2017/01/03/bernoulli-numbers-zeta-function-and-strange-sums/">Bernoulli numbers and the Riemann zeta function</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2023/01/16/pi-bernoulli-numbers/">Approximating π with Bernoulli numbers</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/special-numbers/">Special numbers</a></li>
</ul>
<p>[1] An odd prime number <em>p</em> is defined to be regular if it does not divide the class number of the <em>p</em>th cyclotomic field ℚ(ζ<sub><em>p</em></sub>), where ζ<sub><em>p</em></sub> is a primitive <em>p</em>th root of unity.</p>The post <a href="https://www.johndcook.com/blog/2026/12/03/regular-primes/">Regular primes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/03/regular-primes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Privacy horse trading</title>
		<link>https://www.johndcook.com/blog/2026/12/02/privacy-horse-trading/</link>
					<comments>https://www.johndcook.com/blog/2026/12/02/privacy-horse-trading/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 03 Dec 2026 02:48:07 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Privacy]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248469</guid>

					<description><![CDATA[<p>A prospective client used the term &#8220;horse trading&#8221; on a call today to refer to trade-offs in data privacy. I like it. You can&#8217;t answer the question &#8220;is this piece of data PHI&#8221; in isolation. When someone says &#8220;is this field PHI&#8221; what they really mean is &#8220;can a data set containing this field meet [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/02/privacy-horse-trading/">Privacy horse trading</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>A prospective client used the term &#8220;horse trading&#8221; on a call today to refer to trade-offs in data privacy. I like it.</p>
<p>You can&#8217;t answer the question &#8220;is this piece of data PHI&#8221; in isolation. When someone says &#8220;is this field PHI&#8221; what they really mean is &#8220;can a data set containing this field meet the HIPAA standard for deidentification?&#8221; The answer to that question depends on what other data appear along with the field in question.</p>
<p>My answer to &#8220;Can we include this?&#8221; is essentially &#8220;What&#8217;ll you give me for it?&#8221;, which sounds a lot like horse trading.</p>
<h2>Related posts</h2>
<ul>
<li class='link'><a href='https://www.johndcook.com/blog/2019/10/14/privacy-budget/'>What is a privacy budget?</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2026/04/05/hipaa-compliant-ai/'>HIPAA-compliant AI</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2024/03/21/breach-safe-harbor/'>Breach Safe Harbor</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2024/02/23/masked-names/'>Reconstructing masked names</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/expert-hipaa-deidentification/'>HIPAA expert determination</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/12/02/privacy-horse-trading/">Privacy horse trading</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/02/privacy-horse-trading/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The invariant subspace problem</title>
		<link>https://www.johndcook.com/blog/2026/12/02/the-invariant-subspace-problem/</link>
					<comments>https://www.johndcook.com/blog/2026/12/02/the-invariant-subspace-problem/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 03 Dec 2026 02:19:56 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Functional analysis]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248464</guid>

					<description><![CDATA[<p>This post will be more technical than most, presuming familiarity with Banach spaces. Personal background I was interested in functional analysis when I was an undergrad and intended to specialize in the subject in grad school. I quickly changed my mind. What I found interesting about functional analysis was how it provided a unified framework [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/02/the-invariant-subspace-problem/">The invariant subspace problem</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>This post will be more technical than most, presuming familiarity with Banach spaces.</p>
<h2>Personal background</h2>
<p>I was interested in functional analysis when I was an undergrad and intended to specialize in the subject in grad school. I quickly changed my mind.</p>
<p>What I found interesting about functional analysis was how it provided a unified framework for various topics. For example, finite element analysis and other areas of numerical analysis make more sense from the perspective of functional analysis.</p>
<p>However, in grad school I realized that the functional analysis group was more interested in <em>classifying</em> function spaces than <em>applying</em> them. I could not get interested in the problems they were interested in. I switched to partial differential equations, an area that uses functional analysis heavily.</p>
<p>A new result in functional analysis came out today, and seeing the news took me back to the days mentioned above.</p>
<h2>The invariant subspace problem</h2>
<p>A bounded linear operator <em>T</em> on a complex Banach space <em>X</em> always has at least two closed invariant subspaces: {0} and <em>X</em>. The invariant subspace problem asks under what assumptions on <em>X</em> does every <em>T</em> have a closed, non-trivial invariant subspace.</p>
<p>If <em>X</em> has finite dimension, every linear operator <em>T</em>: <em>X</em> → <em>X</em> has an eigenvalue, and the corresponding eigenspace is a closed, invariant subspace. However, there are linear operators on infinite dimensional separable Banach spaces that have no non-trivial closed invariant subspaces. Per Enflo published the first result along these lines in the 1980s.</p>
<p>The case of <em>X</em> = ℓ² has remained unsolved until possibly today [1]. Anthropic posted a paper entitled <a href="https://www.alphaxiv.org/abs/2612.invariant-subspace-problem-counterexample">A Counterexample to the Invariant Subspace Problem on ℓ²</a>. The paper claims to construct a bounded linear operator <em>T</em> on a separable Hilbert space <em>X</em> such that the only closed subspaces of <em>X</em> left invariant by <em>T</em> are {0} and the whole space <em>X</em>.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2025/05/24/meyers-serrin/"><em>H</em> = <em>W</em></a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2017/03/16/duals-and-double-duals-of-banach-spaces/">Duals and double duals</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2025/04/20/fredholm-alternative/">The Fredholm alternative</a></li>
<li class="link"><a href="https://www.johndcook.com/SeparationOfConvexSets.pdf">Separation of convex sets</a></li>
</ul>
<p>[1] You&#8217;ll see this described as &#8220;an infinite dimensional separable Hilbert space.&#8221; But up to isomorphism ℓ² is the only such space.</p>The post <a href="https://www.johndcook.com/blog/2026/12/02/the-invariant-subspace-problem/">The invariant subspace problem</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/02/the-invariant-subspace-problem/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Prepper Cryptography</title>
		<link>https://www.johndcook.com/blog/2026/12/02/prepper-cryptography/</link>
					<comments>https://www.johndcook.com/blog/2026/12/02/prepper-cryptography/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Wed, 02 Dec 2026 21:39:07 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cryptography]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248462</guid>

					<description><![CDATA[<p>The NSA is urging that everyone move to post-quantum cryptography (PQC) sooner rather than later. My hunch is that this is not because cryptographically relevant quantum computers (CRQCs) are around the corner. Rather it is because there are rumors of mathematical breakthroughs that could allow someone with a conventional computer to break the same encryption methods [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/02/prepper-cryptography/">Prepper Cryptography</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>The NSA is <a href="https://media.defense.gov/2026/Dec/01/2004039413/-1/-1/0/CSA_Immediate_Actions_Push_Toward_PQC.PDF?utm_source=cryptography-dispatches&amp;utm_medium=email&amp;utm_campaign=nsa-advisory">urging</a> that everyone move to post-quantum cryptography (PQC) sooner rather than later. My hunch is that this is <strong>not</strong> because cryptographically relevant quantum computers (CRQCs) are around the corner. Rather it is because there are rumors of mathematical breakthroughs that could allow someone with a conventional computer to break the same encryption methods that we know could be broken by a CRQC.</p>
<p>To understand what is and isn&#8217;t supposedly at risk, we have to distinguish between symmetric (private key) and asymmetric (public key) cryptography.</p>
<p>The asymmetric encryption methods widely deployed today (e.g. RSA and ECC) depend on the difficulty of one of two mathematical problems: integer factoring or the discrete logarithm problem. Both would be broken with the advent of a CRQC, and potentially they could be broken via a mathematical breakthrough.</p>
<p>Nobody is suggesting that symmetric encryption (e.g. AES) is vulnerable to quantum machines or mathematical geniuses. So encrypting messages <em>per se</em> is safe, as far as we know. But the public key methods for exchanging symmetric encryption keys are subject to rumors.</p>
<p>Cryptography is a mixture of mathematics and muddle, as Ian Cassels put it. Asymmetric encryption is heavy on math and light on muddle. Symmetric encryption is light on math and high on muddle. That&#8217;s why there&#8217;s more FUD around asymmetric encryption: more math to potentially exploit.</p>
<p><strong>Here&#8217;s the prepper part</strong>. You could prepare for a cryptography apocalypse by exchanging keys before you need them. Say you fill two flash drives with identical lists of AES encryption keys and hand one to your buddy, i.e. you carry out manual key exchange. You could the exchange messages encrypted using these keys even if all public key cryptography is broken.</p>
<p>And how would you exchange your encrypted messages? Any way you want, because you&#8217;re not depending on the security of the transport medium. You could use email, snail mail, or courier pigeons. Encrypted messages are naturally binary, but you could encode the bits in plain text using <a href="https://www.johndcook.com/blog/2023/12/11/ascii-armor/">ASCII armor</a>. This would certainly be inconvenient, but it would be secure.</p>The post <a href="https://www.johndcook.com/blog/2026/12/02/prepper-cryptography/">Prepper Cryptography</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/12/02/prepper-cryptography/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Chipping away at the Extended Riemann Hypothesis</title>
		<link>https://www.johndcook.com/blog/2026/12/01/quasi-erh/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Tue, 01 Dec 2026 13:50:34 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Number theory]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248446</guid>

					<description><![CDATA[<p>The Riemann Hypothesis (RH) is the first rung on a ladder of more general conjectures. The next rung is the Generalized Riemann Hypothesis (GRH). Both were proved at the same time, and now attention is focused on the third rung, the Extended Riemann Hypothesis (ERH). The ERH says that for any number field K, i.e. any finite-degree [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/12/01/quasi-erh/">Chipping away at the Extended Riemann Hypothesis</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>The Riemann Hypothesis (RH) is the first rung on a ladder of more general conjectures. The next rung is the <a href="https://www.johndcook.com/blog/2026/11/20/grh/">Generalized Riemann Hypothesis</a> (GRH). Both were proved at the same time, and now attention is focused on the third rung, the Extended Riemann Hypothesis (ERH).</p>
<p><img decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/rh-ladder.png" alt="RH -&gt; GRH -&gt; ERH -&gt; GRH for Hecke and Artin L-functions -&gt; Grand RH" width="405" height="360" /></p>
<p>The ERH says that for any number field <em>K</em>, i.e. any finite-degree extension of ℚ, all the zeros of the corresponding zeta function ζ<sub><em>K</em></sub>(<em>s</em>) in the critical strip 0 &lt; Re(<em>s</em>) &lt; 1 lie on the line Re(<em>s</em>) = ½. The Riemann zeta function ζ(<em>s</em>) is the zeta function associated with the rational numbers.F</p>
<p>There are at least a couple approaches to making progress toward ERH. The <a href="https://www.johndcook.com/blog/2026/11/29/extending-the-riemann-hypothesis/">previous post</a> looked at proving the ERH for <em>some</em> number fields. This post will look at another approach: showing that ζ<sub><em>K</em></sub>(<em>s</em>) has no zeros to the right of a line inside the critical strip.</p>
<p>For all number fields <em>K</em>, the function ζ<sub><em>K</em></sub>(<em>s</em>) is never zero for Re(<em>s</em>) ≥ 1. It also has &#8220;trivial&#8221; zeros, i.e. ζ<sub><em>K</em></sub>(<em>s</em>) = 0 for some values of <em>s</em> with Re(<em>s</em>) ≤ 0. The requirement that all zeros of ζ<sub><em>K</em></sub> in the critical strip lie on the line Re(<em>s</em>) = ½ is equivalent to saying ζ<sub><em>K</em></sub>(<em>s</em>) ≠ 0 if Re(<em>s</em>) &gt; ½ [1].</p>
<p>Shortly before there was a proof of the Riemann Hypothesis, there was a proof of the quasi-Riemann Hypothesis, saying that ζ(<em>s</em>) ≠ 0 for Re(<em>s</em>) &gt; 1 − ε for some positive ε. The first proof was for ε = ⅛. The RH is equivalent to the quasi-RH for ε = ½.</p>
<p>The ERH analog of the quasi-Riemann Hypothesis was proved on October 12 for ε = 1/32 [2]. A paper [3] first posted October 20 claims to prove quasi-ERH for ε = 0.12511…. The paper applies to a more general class of functions [4] that includes ζ<sub><em>K</em></sub>. So not only does the paper make progress toward ERH, it also makes progress toward the next rung in the ladder, generalizing the RH to wider and wider classes of functions.</p>
<p style="text-align: center;">***</p>
<p>[1] You can show that within the critical strip, if ζ<sub><em>K</em></sub> has no zeros to the right of the center line, it has no zeros to the left of the central line either.</p>
<p>[2] <a href="https://hexagonmath.org/2610.00200v2">A quasi-Riemann hypothesis for Dedekind zeta functions</a></p>
<p>[3] <a href="https://arxiv.org/abs/2610.26835">Zero-free half-planes for Hecke L-functions over number fields and Quasi-Riemann Hypothesis</a></p>
<p>[4] Finite-order Hecke <em>L</em>-functions</p>The post <a href="https://www.johndcook.com/blog/2026/12/01/quasi-erh/">Chipping away at the Extended Riemann Hypothesis</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Extending the Riemann Hypothesis</title>
		<link>https://www.johndcook.com/blog/2026/11/29/extending-the-riemann-hypothesis/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 30 Nov 2026 01:57:03 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248344</guid>

					<description><![CDATA[<p>Riemann Hypothesis The Riemann Hypothesis (RH) says that the zeros of the function [1] in the critical strip (i.e. 0 &#60; Re(s) &#60; 1) all lie on the line Re(s) = ½. You&#8217;ll hear that all the zeros of ζ(s) have real part ½, but that&#8217;s not correct. The zeta function also has zeros at [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/29/extending-the-riemann-hypothesis/">Extending the Riemann Hypothesis</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<h2>Riemann Hypothesis</h2>
<p>The Riemann Hypothesis (RH) says that the zeros of the function [1]</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/grh1.svg" alt="\zeta(s) = \sum_{n=1}^\infty \frac{1}{n^s}" width="106" height="54" /></p>
<p>in the critical strip (i.e. 0 &lt; Re(<em>s</em>) &lt; 1) all lie on the line Re(<em>s</em>) = ½. You&#8217;ll hear that all the zeros of ζ(<em>s</em>) have real part ½, but that&#8217;s not correct. The zeta function also has zeros at every negative even integer. These are the so-called trivial zeros.</p>
<h2>Generalized Riemann Hypothesis</h2>
<p>The Generalized Riemann Hypothesis (GRH) generalizes RH by changing the numerator of the terms to be χ(<em>n</em>) where the functions χ come from a family of functions (Dirichlet characters) that includes the constant function χ(<em>n</em>) = 1.</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/grh2.svg" alt="L(s, \chi) = \sum_{n=1}^\infty \frac{\chi(n)}{n^s}" width="147" height="54" /></p>
<p>The conclusion remains the same: all zeros in the critical strip lie on the line Re(<em>s</em>) = ½. More on GRH <a href="https://www.johndcook.com/blog/2026/11/20/grh/">here</a>.</p>
<h2>Extended Riemann Hypothesis</h2>
<p>The Extended Riemann Hypothesis (ERH) generalizes RH even further [2], extending the Riemann zeta function ζ(<em>s</em>) to a Dedekind zeta function ζ<sub><em>K</em></sub>(<em>s</em>), where <em>K</em> is a &#8220;number field,&#8221; i.e. a finite-degree extension of the rationals ℚ. The numerators in the definition of ζ(<em>s</em>) are generalized in a way that depends on <em>K</em>. The ERH conjectures that for all number fields <em>K</em>, all the zeros of ζ<sub><em>K</em></sub>(<em>s</em>) in the critical strip lie on the line Re(<em>s</em>) = ½.</p>
<p>When <em>K</em> = ℚ the function ζ<sub><em>K</em></sub>(<em>s</em>) reduces to ζ(<em>s</em>), i.e. the Riemann zeta function is the Dedekind zeta function for the rational numbers.</p>
<h2>Progress toward ERH</h2>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/rh_you_are_here.png" alt="Diagram: RH, GRH, ERH, Grand RH, with 'You are here' between GRH and ERH" width="400" height="280" /></p>
<p>Levent Alpöge said in his <a href="https://alpo.ge/remark.pdf">announcement</a> of a proof of RH</p>
<blockquote><p>I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis. In fact, the method easily extends much further, resolving the so-called Generalized Riemann Hypothesis, and I expect, with more time, the Extended Riemann Hypothesis too.</p></blockquote>
<p>Axiom Math has posted a <a href="https://www.alphaxiv.org/abs/2611.extended-riemann-hypothesis-dedekind-zeta">paper</a> that uses the techniques from Alpöge&#8217;s proof of GRH to make progress toward ERH, partially confirming Alpöge&#8217;s prediction that his approach could extend to ERH. The new proof does not extend to all number fields but to &#8220;totally real&#8221; number fields, extensions of ℚ by a real number that is a root of a polynomial with rational coefficients having all real roots. It also extends to CM fields [3].</p>
<p style="text-align: center;">***</p>
<p>[1] The sum defines ζ(<em>s</em>) only where it converges, i.e., for Re(<em>s</em>) &gt; 1. The Riemann zeta function is the analytic continuation of this function to the complex plane, except for a singularity at <em>s</em> = 1.</p>
<p>[2] The ERH implies GRH, even though Dirichlet <em>L</em>-functions are not Dirichlet zeta functions.</p>
<p>[3] A CM field is a number field <em>K</em> that is a totally imaginary quadratic extension of a totally real field <em>K</em><sup>+</sup>.</p>The post <a href="https://www.johndcook.com/blog/2026/11/29/extending-the-riemann-hypothesis/">Extending the Riemann Hypothesis</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Block designs as matrices</title>
		<link>https://www.johndcook.com/blog/2026/11/29/block-designs-as-matrices/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sun, 29 Nov 2026 19:42:08 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Combinatorics]]></category>
		<category><![CDATA[Design theory]]></category>
		<category><![CDATA[Linear algebra]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248341</guid>

					<description><![CDATA[<p>Block designs are ways of grouping elements of a set into blocks that have some sort of specified pattern. More on the patterns below. I recently ran across quantum block designs and couldn&#8217;t imagine what that could mean. I saw Gerhard Zauner&#8217;s thesis &#8220;Quantum Designs: Foundations of a non-commutative Design Theory&#8221; and wondered what, in this [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/29/block-designs-as-matrices/">Block designs as matrices</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Block designs are ways of grouping elements of a set into blocks that have some sort of specified pattern. More on the patterns below.</p>
<p>I recently ran across <em>quantum</em> block designs and couldn&#8217;t imagine what that could mean. I saw Gerhard Zauner&#8217;s <a href="http://www.gerhardzauner.at/documents/gz-quantumdesigns.pdf">thesis</a> &#8220;Quantum Designs: Foundations of a non-commutative Design Theory&#8221; and wondered what, in this setting, does or does not commute.</p>
<h2>Analogy</h2>
<p>The key to understanding the quantum connection is to think about the matrices that <em>represent</em> block designs rather than the block designs per se. These matrices have a connection to the matrices (or more generally, linear operators) of interest in quantum mechanics, and it is these matrices that may not commute under multiplication.</p>
<p>A combinatorial design consists of a set of points <em>V</em> and a set of blocks <em>B</em>, where a block is a subset of <em>V</em>. So if <em>V</em> has <em>v</em> elements and <em>B</em> has <em>b</em> elements, you can represent the design (<em>V</em>, <em>B</em>) as an <em>v</em> by <em>b</em> matrix, with a 1 in row <em>i</em> column <em>j</em> if the <em>ith</em> point is in the <em>jth</em> block and a 0 otherwise.</p>
<h2>Example</h2>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/fano_numbered.png" alt="Fano plane" width="517" height="397" /></p>
<p>The Fano plane is a well-known example of a block design. It is a model for a finite projective plane if you interpret the blocks as lines. The incidence matrix corresponding to the Fano plane above would have rows corresponding to the numbered points and columns corresponding to the colored lines. The column corresponding to the green line would have 1s in rows 1, 2, and 5 and 0s elsewhere. Every column would have three 1s because every line has three points. And every row would have three 1s because every point lies on three lines.</p>
<h2>Requirements</h2>
<p>A couple weeks ago I wrote a series of posts starting with finite projective planes, like the Fano plane above, gradually increasing in generality up to combinatorial designs, then specializing slightly to balanced incomplete block designs (<a href="https://www.johndcook.com/blog/2026/11/10/bibd/">BIBD</a>) with parameters <em>v</em>, <em>k</em>, and λ.</p>
<p>This means the set of points <em>V</em> has <em>v</em> elements, every block contains <em>k</em> elements of <em>V</em>, and every pair of points in <em>V</em> is contained in λ blocks. For example, the Fano plane above is a BIBD with parameters (7, 3, 1).</p>
<p>The number of blocks <em>b</em> can be computed as a function of the parameters, as can the number <em>r</em> of blocks each point appears in. See how <a href="https://www.johndcook.com/blog/2026/11/10/bibd/">here</a>.</p>
<h2>Requirements in matrix form</h2>
<p>Since the set of points <em>V</em> has <em>v</em> elements and the set of blocks <em>B</em> has <em>b</em> elements, the incidence matrix <em>M</em> has <em>v</em> rows and <em>b</em> columns.</p>
<p>Since every block contains <em>k</em> elements, the columns of <em>M</em> each sum to <em>q</em>.</p>
<p>Since every point is contained in <em>r</em> blocks, the rows of <em>M</em> each sum to <em>r</em>.</p>
<p>The (<em>i</em>, <em>j</em>) element of <em>MM</em><sup>T</sup> equals the number of blocks containing the <em>ith</em> and <em>j</em>th points. When <em>i</em> = <em>j</em>, this is <em>r</em>. When <em>i</em> ≠ <em>j</em>, this is λ.</p>
<h2>Quantum</h2>
<p>I won&#8217;t go into quantum designs here, but having read this post you&#8217;re prepared to read Zauner&#8217;s thesis.</p>
<p>In case you&#8217;re interested, there is a <a href="https://arxiv.org/abs/2312.09264v1">categorical framework</a> that unifies classical and quantum block designs.</p>The post <a href="https://www.johndcook.com/blog/2026/11/29/block-designs-as-matrices/">Block designs as matrices</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>An elementary refutation of ETH</title>
		<link>https://www.johndcook.com/blog/2026/11/28/elementary-refutation-of-eth/</link>
					<comments>https://www.johndcook.com/blog/2026/11/28/elementary-refutation-of-eth/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 22:48:04 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Logic]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248338</guid>

					<description><![CDATA[<p>One month ago both Anthropic and OpenAI posted proofs that the exponential time hypothesis (ETH) is false. I wrote about these proofs here. Noam Mazor and Rafael Pass have posted a new proof. Their 18-page paper begins: We here provide an alternative elementary and self-contained proof for the refutation of ETH. The paper concludes with [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/28/elementary-refutation-of-eth/">An elementary refutation of ETH</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>One month ago both Anthropic and OpenAI posted proofs that the exponential time hypothesis (ETH) is false. I wrote about these proofs <a href="https://www.johndcook.com/blog/2026/10/27/eth-false/">here</a>.</p>
<p>Noam Mazor and Rafael Pass have posted <a href="https://eccc.weizmann.ac.il/report/2026/347/">a new proof</a>. Their 18-page paper begins:</p>
<blockquote><p>We here provide an alternative elementary and self-contained proof for the refutation of ETH.</p></blockquote>
<p>The paper concludes with the following:</p>
<blockquote><p>AI Statement. OpenAI ChatGPT (Astra) was used extensively to study, learn about the problem, and explore candidate constructions. While the main ideas underlying the constructions and abstractions are due to the authors, ChatGPT was invaluable in exploring definitions and proof approaches, and in formalizing proof ideas and sketches. ChatGPT was also used to assist with writing and to provide feedback on the manuscript and its presentation.</p></blockquote>
<p>&nbsp;</p>The post <a href="https://www.johndcook.com/blog/2026/11/28/elementary-refutation-of-eth/">An elementary refutation of ETH</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/28/elementary-refutation-of-eth/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Cryptography in the Age of AI</title>
		<link>https://www.johndcook.com/blog/2026/11/28/cryptography-and-ai/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 20:07:12 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Artificial intelligence]]></category>
		<category><![CDATA[Cryptography]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248335</guid>

					<description><![CDATA[<p>There is speculation that AI labs are sitting on cryptography results that are too dangerous to publish. One bit of evidence for this suspicion is that cryptography is conspicuously missing from the list of areas of math that have published AI-assisted proofs recently. But supporting evidence is not proof. It is well known that public [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/28/cryptography-and-ai/">Cryptography in the Age of AI</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>There is speculation that AI labs are sitting on cryptography results that are too dangerous to publish. One bit of <a href="https://www.johndcook.com/blog/2011/02/22/absence-of-evidence/">evidence</a> for this suspicion is that cryptography is conspicuously missing from the list of areas of math that have published AI-assisted proofs recently. But supporting evidence is not proof.</p>
<p>It is well known that public key cryptography based on the difficulty of factoring integers or on the difficulty of the discrete logarithm problem will break if and when a cryptographically relevant quantum computer is constructed. But what if someone discovers radically more efficient classical algorithms that break public key cryptography?</p>
<p>Ian Cassels once said:</p>
<blockquote><p>Cryptography is a mixture of mathematics and muddle, and without the muddle the mathematics can be used against you.</p></blockquote>
<p>Variations on RSA and ECC have lots of mathematical structure that could be exploited by someone with access to a quantum computer, or possibly by a mathematical discovery. Symmetric encryption algorithms (such as AES) and secure hashing algorithms (such as SHA256) have a high ratio of muddle to mathematics, and few people believe the security of these algorithms is threatened by quantum computers or mathematical breakthroughs.</p>
<p>Lattice-based cryptography also has a lot of mathematical structure, but is believed to be immune to attacks from quantum computers. I don&#8217;t see why it should be immune to new mathematical discoveries.</p>
<p>Maybe one of the big AI labs has discovered a way to break public key cryptography and is keeping it under wraps, but here&#8217;s a reason to think this might not be the case: proving a widely-believed theorem, such as the Riemann Hypothesis, will not break encryption. A cryptographic attack requires a new idea, not confirmation that an old idea is correct. AI may very well assist someone in coming up with a new encryption-breaking idea, but that requires more creativity than settling conjectures.</p>
<h2>Related posts</h2>
<ul>
<li class='link'><a href='https://www.johndcook.com/blog/2026/10/17/nist-curves-exonorated/'>NIST exonerated</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2026/10/21/emudhra/'>Back doors, incompetence, and elliptic curves</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2026/03/31/quantum-y2k/'>Quantum Y2K</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/11/28/cryptography-and-ai/">Cryptography in the Age of AI</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Measures of graph robustness</title>
		<link>https://www.johndcook.com/blog/2026/11/28/graph-robustness/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 18:22:51 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Networks]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248328</guid>

					<description><![CDATA[<p>There are multiple ways to quantify how badly a network fragments after a targeted attack on its nodes. They&#8217;re all defined using a small set of concepts. Basic definitions Given a graph G, let S denote a subset of the nodes of G. G − S denotes the new graph formed by removing the nodes in S and all [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/28/graph-robustness/">Measures of graph robustness</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>There are multiple ways to quantify how badly a network fragments after a targeted attack on its nodes. They&#8217;re all defined using a small set of concepts.</p>
<h2>Basic definitions</h2>
<p>Given a graph <em>G</em>, let <em>S</em> denote a subset of the nodes of <em>G</em>.</p>
<p><em>G</em> − <em>S</em> denotes the new graph formed by removing the nodes in <em>S</em> and all edges running to a node in <em>S</em>.</p>
<p><em>c</em>(<em>G</em> − <em>S</em>) is the number of components in <em>G</em> − <em>S</em>.</p>
<p><em>m</em>(<em>G</em> − <em>S</em>) is the number of nodes in the largest component of <em>G</em> − <em>S</em>.</p>
<p>The set <em>S</em> is called a cutset if <em>c</em>(<em>G</em> − <em>S</em>) &gt; 1.</p>
<h2>Measures of robustness</h2>
<p>For each of these measures, larger values imply more robustness.</p>
<h3>Integrity</h3>
<p>The integrity of a graph <em>G</em> is the minimum of</p>
<p style="padding-left: 40px;">|<em>S</em>| + <em>m</em>(<em>G</em> − <em>S</em>)</p>
<p>over all subsets <em>S</em> of the nodes of <em>G</em>. You could interpret |<em>S</em>| as the cost of an attack and <em>m</em>(<em>G</em> − <em>S</em>) as the damage done by the attack.</p>
<h3>Tenacity</h3>
<p>The tenacity of a graph is the minimum of</p>
<p style="padding-left: 40px;">( |<em>S</em>| + <em>m</em>(<em>G</em> − <em>S</em>) ) / <em>c</em>(<em>G</em> − <em>S</em>)</p>
<p>over all cutsets <em>S</em> [1]. Tenacity measures damage two ways: the size of the largest remaining component and the number of components created.</p>
<h3>Toughness</h3>
<p>The toughness of a graph is the minimum of</p>
<p style="padding-left: 40px;">|<em>S</em>| / <em>c</em>(<em>G</em> − <em>S</em>)</p>
<p>over all cutsets <em>S</em>. This is the cost of an attack relative to the number of components it creates.</p>
<h2>Measures of fragility</h2>
<p>These are also measures of robustness, except they run backward: smaller values are more robust. So you could say they measure fragility rather than robustness.</p>
<h3>Scattering number</h3>
<p>Scattering is the maximum of</p>
<p style="padding-left: 40px;"><em>c</em>(<em>G</em> − <em>S</em>) − |<em>S</em>|</p>
<p>over all cutsets <em>S</em>. It is similar to toughness in that it compares the cost of an attack to the number of components it creates. It takes a difference rather than a ratio, and it runs in the opposite direction.</p>
<h3>Rupture degree</h3>
<p>Rupture degree measures damage the same way scattering does, except it also accounts for the size of the largest remaining component. Rupture degree is the maximum of</p>
<p style="padding-left: 40px;"><em>c</em>(<em>G</em> − <em>S</em>) − |<em>S</em>| − <em>m</em>(<em>G</em> − <em>S</em>)</p>
<p>over all cutsets <em>S.</em></p>
<h2>Computation</h2>
<p>All the measures above are hard to compute exactly for large graphs. However, any guess at an optimal set <em>S</em> gives a one-sided bound. It&#8217;s harder to estimate how close to optimal a choice of <em>S</em> is.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2016/01/07/connectivity-graph-laplacian/">Measuring graph connectivity with eigenvalues</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2025/05/21/effective-graph-resistance/">Effective graph resistance</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2026/08/18/the-imbalance-theorem/">The imbalance theorem</a></li>
</ul>
<p>[1] A complete graph has no cutsets, and so measures below that range over cutsets are assigned conventional values for complete graphs. For example, the toughness of a complete graph is defined to be ∞.</p>The post <a href="https://www.johndcook.com/blog/2026/11/28/graph-robustness/">Measures of graph robustness</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Sets of equiangular lines</title>
		<link>https://www.johndcook.com/blog/2026/11/28/equiangular-lines/</link>
					<comments>https://www.johndcook.com/blog/2026/11/28/equiangular-lines/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 28 Nov 2026 16:20:51 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Combinatorics]]></category>
		<category><![CDATA[Geometry]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248326</guid>

					<description><![CDATA[<p>How large can a set of lines through the origin in ℝn be if the angle between any pair of distinct lines is the same? Clearly the answer is at least n. The coordinate axes are mutually perpendicular, so they&#8217;re equiangular with angle 90°. In the plane, you can have three lines through the origin that intersect [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/28/equiangular-lines/">Sets of equiangular lines</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>How large can a set of lines through the origin in ℝ<sup><em>n</em></sup> be if the angle between any pair of distinct lines is the same?</p>
<p>Clearly the answer is at least <em>n</em>. The coordinate axes are mutually perpendicular, so they&#8217;re equiangular with angle 90°.</p>
<p>In the plane, you can have three lines through the origin that intersect at 60° by connecting opposite vertices of a regular hexagon. Another way to think of these same lines is to imagine an equilateral triangle whose center is at the origin and draw lines through the center and each of the vertices of the triangle. This construction generalizes to ℝ³ and to higher dimensions: center a regular tetrahedron, or in general a regular <em>n</em>-simplex, at the origin and draw lines through the origin and each of the vertices.</p>
<p>If we&#8217;re interested in the maximum number of equiangular <em>vectors</em> rather than lines, this is as good as we can do. The maximum number of equiangular vectors in ℝ<sup><em>n</em></sup> is <em>n</em> + 1, and such a set can be constructed as above by taking the vectors from the center to the vertices of the simplex.</p>
<p>But since we&#8217;re interested in <em>lines</em> and not just vectors, there are more possibilities in general.</p>
<h2>Example in 3D</h2>
<p>In three dimensions, we can have six equiangular lines by connecting the opposite vertices of a regular icosahedron. To see this, consider the icosahedron whose 12 vertices are</p>
<p style="padding-left: 40px;">(0, ±1, ±φ)<br />
(±1, ±φ, 0)<br />
(±φ, 0, ±1)</p>
<p>where φ is the golden ratio. Here the choice of whether ± stands for + or − is made independently for each component.</p>
<p>The six lines connecting opposite vertices run through <em>v</em> and −<em>v</em> where <em>v</em> ranges over</p>
<p style="padding-left: 40px;">(0, +1, +φ)<br />
(0, +1, −φ)<br />
(+1, +φ, 0)<br />
(+1, −φ, 0)<br />
(+φ, 0, +1)<br />
(+φ, 0, −1)</p>
<p>The cosine of the angle between any pair of these lines is either φ² − 1 or φ, but those are the same because of the equation defining the golden ratio.</p>
<p>It turns out the example above is optimal: you cannot have more than six equiangular lines in three dimensions.</p>
<h2>Higher dimensions</h2>
<p>Let <em>N</em>(<em>d</em>) be the maximum number of equiangular lines in ℝ<sup><em>d</em></sup>. The value of <em>N</em>(<em>d</em>) is not known in general, though it is known to be bounded by <em>d</em>(<em>d</em> + 1)/2.</p>
<p>The first 17 values are given in OEIS <a href="https://oeis.org/A002853">A002853</a>:</p>
<p style="padding-left: 40px;">1, 3, 6, 6, 10, 16, 28, 28, 28, 28, 28, 28, 28, 28, 36, 40, 48</p>
<p>A <a href="https://arxiv.org/abs/2611.34855">paper</a> posted this week gives the values for <em>d</em> = 18, 19, and 20.</p>The post <a href="https://www.johndcook.com/blog/2026/11/28/equiangular-lines/">Sets of equiangular lines</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/28/equiangular-lines/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How many triangles can a graph with no pentagons have?</title>
		<link>https://www.johndcook.com/blog/2026/11/27/triangles-without-pentagons/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Fri, 27 Nov 2026 15:27:19 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Networks]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248321</guid>

					<description><![CDATA[<p>Suppose you have a graph with n nodes and no pentagons, how many triangles can it contain? Here a pentagon means a cycle of length 5 and a triangle means a cycle of length 3. This is an abstract property of the graph, not related to the representation of the graph on a plane, unless the [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/27/triangles-without-pentagons/">How many triangles can a graph with no pentagons have?</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Suppose you have a graph with <em>n</em> nodes and no pentagons, how many triangles can it contain?</p>
<p>Here a pentagon means a cycle of length 5 and a triangle means a cycle of length 3. This is an abstract property of the graph, not related to the representation of the graph on a plane, unless the graph can be embedded in a plane with no edge crossings.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/random_graph2.png" width="500" height="502" /></p>
<p>A <a href="https://arxiv.org/abs/2611.33685">paper</a> posted two days ago proves that the maximum number of triangles is bounded by</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/pentagon-triangle.svg" alt="\left( \frac{1}{3\sqrt{3}} + o(1) \right) n^{3/2}" width="147" height="49" /></p>
<p>The notation <em>o</em>(1) is a term that goes to zero as <em>n</em> grows. See notes <a href="https://www.johndcook.com/blog/asymptotic_notation/">here</a>.</p>
<p>Roughly speaking, the no-pentagon requirement takes the square root of the maximum number of triangles. The maximum number of triangles in a graph with <em>n</em> nodes is <em>n</em>(<em>n</em> − 1)(<em>n</em> − 2)/6 = <em>O</em>(<em>n</em>³) and the no-pentagon rule cuts this down to <em>O</em>(<em>n</em><sup>3/2</sup>).</p>The post <a href="https://www.johndcook.com/blog/2026/11/27/triangles-without-pentagons/">How many triangles can a graph with no pentagons have?</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Counterexamples to proof by example</title>
		<link>https://www.johndcook.com/blog/2026/11/27/counterexample-to-proof-by-example/</link>
					<comments>https://www.johndcook.com/blog/2026/11/27/counterexample-to-proof-by-example/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Fri, 27 Nov 2026 13:03:22 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248313</guid>

					<description><![CDATA[<p>There are a few standard examples of statements that appear to be true for a large number of examples but eventually fail. Three that come to mind are prime generating polynomials, the Borwein integrals, and Mercer&#8217;s circle problem. I&#8217;ll go into each of these briefly before discussing an example I just recently ran across. Prime [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/27/counterexample-to-proof-by-example/">Counterexamples to proof by example</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>There are a few standard examples of statements that appear to be true for a large number of examples but eventually fail. Three that come to mind are prime generating polynomials, the Borwein integrals, and Mercer&#8217;s circle problem. I&#8217;ll go into each of these briefly before discussing an example I just recently ran across.</p>
<h2>Prime generating polynomials</h2>
<p>Euler discovered that <em>p</em>(<em>n</em>) = <em>n</em>² − <em>n</em> + 41 is prime for <em>n</em> = 1, 2, 3, &#8230;, 40 but not for <em>n</em> = 41.</p>
<p>Another example is that <em>q</em>(<em>n</em>) = <em>n</em>² − 79 <em>n</em> + 1601 is prime for <em>n</em> = 1, 2, 3, &#8230;, 79 but not for <em>n</em> = 80.</p>
<h2>Borwein integrals</h2>
<p>Define</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" style="background-color: white;" src="https://www.johndcook.com/borwein4.svg" alt="B(n) = \int_0^\infty \prod_{k=0}^{n} \text{sinc}\left(\frac{x}{2k+1}\right) \, dx." width="263" height="49" /></p>
<p>Then <em>B</em>(<em>n</em>) = π/2 for <em>n</em> = 1, 2, 3, …, 6 but not for <em>n</em> = 7, though it <em>almost</em> holds for <em>n</em> = 7. More <a href="https://www.johndcook.com/blog/2024/02/13/borwein-integrals/">here</a>.</p>
<h2>Moser&#8217;s circle problem</h2>
<p>This may be the example you&#8217;re most likely to see online. Let <em>f</em>(<em>n</em>) be the maximum number of regions you can divide a circle into by drawing lines between <em>n</em> points on the circle. The first five values are</p>
<p style="padding-left: 40px;">1, 2, 4, 8, 16</p>
<p>and so you might reasonably expect <em>f</em>(6) = 32, but in fact <em>f</em>(6) = 31.</p>
<h2>New example</h2>
<p>This morning I saw a <a href="https://x.com/sphere_homotopy/status/2126008331504681043">post</a> from @sphere_homotopy on X giving the following example. For small <em>n</em></p>
<p style="padding-left: 40px;">gcd(<i>n</i><sup>17</sup> + 9, (<i>n</i> + 1)<sup>17</sup> + 9) = 1.</p>
<p>And by &#8220;small,&#8221; I mean all <em>n</em> less than the 52-digit number</p>
<p style="padding-left: 40px;">8424432925592889329288197322308900672459420460792433</p>
<p>Needless to say nobody discovered this by trying <em>n</em> = 1, 2, 3, … until they got to the value of <em>n</em> above. You can find an explanation of the theory behind the example <a href="https://arxiv.org/pdf/1608.07936">here</a>. The same theory can be used to create more examples, such as the following.</p>
<p>It appears that</p>
<p style="padding-left: 40px;">gcd(n<sup>19</sup> + 3, (<em>n</em> + 1)<sup>19</sup> + 3) = 1</p>
<p>for all <em>n</em>, and this is true for <em>n</em> &lt; 25211925041.</p>The post <a href="https://www.johndcook.com/blog/2026/11/27/counterexample-to-proof-by-example/">Counterexamples to proof by example</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/27/counterexample-to-proof-by-example/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Las Vegas, Monte Carlo, and Integer Factorization</title>
		<link>https://www.johndcook.com/blog/2026/11/26/las-vegas-monte-carlo/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 26 Nov 2026 13:14:07 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Number theory]]></category>
		<category><![CDATA[Probability]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248307</guid>

					<description><![CDATA[<p>Monte Carlo algorithms typically have a fixed runtime but a variable error rate. Las Vegas algorithms have a variable runtime but a fixed (i.e. zero) error rate. Stanisław Ulam came up with the idea of Monte Carlo methods in 1946 and Nicholas Metropolis coined the term &#8220;Monte Carlo&#8221; the next year. László Babai coined the [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/26/las-vegas-monte-carlo/">Las Vegas, Monte Carlo, and Integer Factorization</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Monte Carlo algorithms typically have a fixed runtime but a variable error rate.</p>
<p>Las Vegas algorithms have a variable runtime but a fixed (i.e. zero) error rate.</p>
<p>Stanisław Ulam came up with the idea of Monte Carlo methods in 1946 and Nicholas Metropolis coined the term &#8220;Monte Carlo&#8221; the next year.</p>
<p>László Babai coined the term “Las Vegas algorithm” in 1979 as a pun on Monte Carlo.</p>
<h2>Las Vegas factoring algorithm in the news</h2>
<p>There&#8217;s a new paper on <a href="https://github.com/google-research/google-research/tree/4a7bc8ab0bc770e71a259b7966c500496b99010a/cogentic_research_papers/integer_factorization">GitHub</a> titled Unconditional Integer Factorization in Time <em>L</em><sub><em>N</em></sub>[1/3, <em>O</em>(1)]. It is a Las Vegas algorithm because it always [1] returns a correct factorization, though the time it takes to execute is random.</p>
<p>What is unconditional about the new algorithm? The analysis of the new algorithm does not depend on any unproven assumptions. Before there was a proof of the (<a href="https://www.johndcook.com/blog/2026/11/20/grh/">Generalized</a>) Riemann Hypothesis, many theorems were conditional because they assumed the GRH. The fastest integer factorization algorithms are not dependent on GRH but are dependent on other widely believed but unproven conjectures.</p>
<p>The notation <i>L</i><sub><i>N</i></sub>[α, <i>c</i>], commonly used in computational number theory, stands for</p>
<p style="padding-left: 40px;">exp(<i>c</i> (log <i>N</i>)<sup>α</sup> (log log <i>N</i>)<sup>1−α</sup>)</p>
<p>The fastest commonly used factorization method at this time is the <a href="https://www.johndcook.com/blog/2025/09/30/time-needed-to-factor-large-integers/">GNFS</a> (general number field sieve). Its runtime is</p>
<p style="padding-left: 40px;"><i>L</i><sub><i>N</i></sub>[1/3, (64/9)<sup>1/3</sup> + <i>o</i>(1)] ≈ <i>L</i><sub><i>N</i></sub>[1/3, 1.923]</p>
<p>This means that the <em>c</em> term is (64/9)<sup>1/3</sup> = 1.923 plus a term that goes to zero as <em>N</em> increases.</p>
<p>For the new algorithm, the α term is the same as GNFS but the <em>c</em> term is something less than 105. This is a bound on the worst-case expected time. The runtime is not as good as GNFS but the runtime proof does not depend on any unproven assumptions. The best unconditional algorithm before this recent result was <i>L</i><sub><i>N</i></sub>[1/2, 1].</p>
<p>&nbsp;</p>
<p>[1] Las Vegas algorithms halt with probability 1. In practice they terminate, but strictly speaking they are partial functions, functions that give a correct result when they terminate.</p>The post <a href="https://www.johndcook.com/blog/2026/11/26/las-vegas-monte-carlo/">Las Vegas, Monte Carlo, and Integer Factorization</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Covering a body with eight smaller copies of itself</title>
		<link>https://www.johndcook.com/blog/2026/11/25/hadwiger-covering/</link>
					<comments>https://www.johndcook.com/blog/2026/11/25/hadwiger-covering/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Wed, 25 Nov 2026 14:51:58 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Convexity]]></category>
		<category><![CDATA[Geometry]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248302</guid>

					<description><![CDATA[<p>It&#8217;s obvious that you could cover a cube with smaller cubes. You could, for example, take a cube with side 1 and cover it with cubes of side ½ centered on each corner. It&#8217;s not as obvious how you would cover a ball with smaller balls, but you could cover the unit ball with balls [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/25/hadwiger-covering/">Covering a body with eight smaller copies of itself</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>It&#8217;s obvious that you could cover a cube with smaller cubes. You could, for example, take a cube with side 1 and cover it with cubes of side ½ centered on each corner.</p>
<p>It&#8217;s not as obvious how you would cover a ball with smaller balls, but you could cover the unit ball with balls of radius ½√3 centered at the points (±½, ±½, ±½).</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/sphere_covering.png" alt="Covering a sphere with eight smaller spheres" width="450" height="450" /></p>
<p>In fact, you could cover a ball with four smaller balls [1].</p>
<p>Now consider an arbitrary convex shape <em>K</em> in three dimensions with non-empty interior. Is it possible to cover <em>K</em> by copies of itself? Since <em>K</em> has non-empty interior, you could cover <em>K</em> by putting a smaller version of <em>K</em> around every point. And if <em>K</em> is compact, then this cover has a finite subcover. But there might be a <em>lot</em> of elements in this finite cover. What&#8217;s the minimum number possible in general? It takes eight cubes to cover a cube, so the minimum is at least 8. But could some odd shape take more?</p>
<p>Hadwiger&#8217;s covering conjecture says that <em>K</em> can be covered by eight copies of itself. That is, there exists a scaling constant 0 &lt; λ &lt; 1 and shift vectors <em>v</em><sub><em>i</em></sub> such that</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/hadwiger.svg" alt="K \subseteq \bigcup_{i=1}^8 (\lambda K + v_i)" width="127" height="55" /></p>
<p>Dror Aiger, Sariel Har-Peled, and Goran Žužić posted a proof of Hadwiger&#8217;s conjecture on <a href="https://arxiv.org/abs/2611.32334">arXiv</a> yesterday. The abstract to their paper says &#8220;The proof was discovered using an experimental harness on top of Gemini 4 Carbon and formally verified in Lean 4.&#8221;</p>
<p>I&#8217;ve heard good things about the Google&#8217;s new Carbon model. This is the first announcement of a major theorem proved with the assistance of a Google model that I&#8217;ve noticed.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2009/01/23/splitting-a-convex-set-through-its-center/">Splitting a convex set through its center</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2021/11/04/convex-hull-of-zeros/">Convex hull of zeros</a></li>
<li class="link"><a href="https://www.johndcook.com/SeparationOfConvexSets.pdf">Separation of Convex Sets in Linear Topological Spaces</a></li>
</ul>
<p>[1] Inscribe the vertices of regular tetrahedron on the unit sphere, then multiply the vectors representing the vertices by ⅓. Center spheres of radius ⅔√2 at each vertex.</p>The post <a href="https://www.johndcook.com/blog/2026/11/25/hadwiger-covering/">Covering a body with eight smaller copies of itself</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/25/hadwiger-covering/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Polynomials and Planets</title>
		<link>https://www.johndcook.com/blog/2026/11/25/polynomials-and-planets/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Wed, 25 Nov 2026 13:44:21 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[History]]></category>
		<category><![CDATA[Orbital mechanics]]></category>
		<category><![CDATA[Special functions]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248297</guid>

					<description><![CDATA[<p>A couple days ago I wrote about how the force of gravity varies over the surface of an oblate planet. Earth is slightly oblate, i.e., it has an equatorial bulge, and this oblateness has a significant effect on satellite orbits. More on that here. The fictional planet Mesklin in Hal Clement&#8217;s novel Mission of Gravity is [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/25/polynomials-and-planets/">Polynomials and Planets</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.johndcook.com/blog/2026/11/23/oblate-spheroid-gravity/">A couple days ago</a> I wrote about how the force of gravity varies over the surface of an oblate planet. Earth is slightly oblate, <em>i</em>.<em>e</em>., it has an equatorial bulge, and this oblateness has a significant effect on satellite orbits. More on that <a href="https://www.johndcook.com/blog/2025/07/07/j2-effect/">here</a>.</p>
<p>The fictional planet Mesklin in Hal Clement&#8217;s novel <em>Mission of Gravity</em> is extremely oblate due to its rapid rotation, and apparent gravity varies by two orders of magnitude between the equator and the poles. As science fiction authors often do, Clement took some aspect of familiar experience and exaggerated it to make it easier to appreciate.</p>
<p>The gravitational potential of an oblate spheroid as a function of the polar angle θ is proportional to</p>
<p style="padding-left: 40px;">1 − <em>J</em><sub>2</sub> <em>P</em><sub>2</sub>(cos θ)</p>
<p>where <em>P</em><sub>2</sub> is the second Legendre polynomial. There are more terms of the form</p>
<p style="padding-left: 40px;"><em>J</em><sub>2<em>n</em></sub> <em>P</em><sub>2<em>n</em></sub>(cos θ)</p>
<p>but the most significant term is the one with coefficient <em>J</em><sub>2</sub>, hence the <a href="https://www.johndcook.com/blog/2025/07/07/j2-effect/">J2 effect</a>.</p>
<p><img decoding="async" class="aligncenter" src="https://www.johndcook.com/legendre_poly.png" /></p>
<p>I learned about Legendre polynomials long before I learned about gravity calculations, and so my first reaction when seeing the result above would be that gravitational calculations are another example of places where Legendre polynomials pop up. While this is true, it&#8217;s historically backward. Legendre discovered the polynomials that now bear his name <em>because</em> they came up in his gravitational calculations.</p>
<p>It would be more historically informed to say that the polynomials falling out of Legendre&#8217;s exploration of gravity have found applications elsewhere, and often for the same reasons: because they fall out of calculations involving radial symmetry. That&#8217;s why they appear in E&amp;M, acoustics, and quantum mechanics.</p>
<p>Legendre polynomials also appear in applications that have nothing to do with radial symmetry. For example, the most common form of Gaussian quadrature is based on Legendre polynomials. More on that <a href="https://www.johndcook.com/OrthogonalPolynomials.pdf">here</a>.</p>The post <a href="https://www.johndcook.com/blog/2026/11/25/polynomials-and-planets/">Polynomials and Planets</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Taking a password joke seriously</title>
		<link>https://www.johndcook.com/blog/2026/11/24/password-joke/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Tue, 24 Nov 2026 15:16:48 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Unicode]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248293</guid>

					<description><![CDATA[<p>&#8220;I’m sorry but your password must contain 1 char each from: Arabic, Chinese, Thai, Korean, Klingon, Wingdings and an emoji&#8221; This was a message from Finley Creative (@FinleyCreative) to Jeff Atwood (@codinghorror) on March 3, 2016. The original post seems to have gone away. You could write a script to generate a password according to [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/24/password-joke/">Taking a password joke seriously</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>&#8220;I’m sorry but your password must contain 1 char each from: Arabic, Chinese, Thai, Korean, Klingon, Wingdings and an emoji&#8221;</p>
<p>This was a message from Finley Creative (@FinleyCreative) to Jeff Atwood (@codinghorror) on March 3, 2016. The original post seems to have gone away.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/password_image.png" width="500" height="170" /></p>
<p>You could write a script to generate a password according to these rules. How secure would it be?</p>
<p>Multiplying the number of characters from each category gives</p>
<p style="padding-left: 40px;">153 * 20992 * 57 * 11172 * 38 * 196 * 1409 = 21463556813227081728</p>
<p>possibilities. You could get different numbers depending on how you interpret each of the words in the rules. For example, the calculation above counts Arabic and Thai <em>letters</em>, but Klingon counts 26 letters, 10 digits and 3 punctuation marks.</p>
<p>Allowing the characters to appear in any order multiplies the number of possibilities by 7!  = 5040. This corresponds to 76.5 bits of entropy, about the same as 13 alphanumeric characters (upper and lower case).</p>
<p>You could generate a password as above, then using something like <a href="https://www.johndcook.com/blog/2025/07/23/base58-base85/">Base 58 encoding</a> to turn into something you could type on a standard keyboard.</p>
<p>What if you wanted to use the seven Unicode characters as a password without converting them to ASCII characters first? This would be asking for trouble due to possible different encodings of the Unicode characters. Besides, sites that insist that your password contain a &#8220;symbol&#8221; can be quite restrictive in what symbols they allow.</p>The post <a href="https://www.johndcook.com/blog/2026/11/24/password-joke/">Taking a password joke seriously</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Memorable 12-digit primes</title>
		<link>https://www.johndcook.com/blog/2026/11/24/memorable-12-digit-primes/</link>
					<comments>https://www.johndcook.com/blog/2026/11/24/memorable-12-digit-primes/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Tue, 24 Nov 2026 14:13:51 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Memory]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248289</guid>

					<description><![CDATA[<p>There&#8217;s an old joke about having to enter a 12-digit prime number to continue using a program. I wrote about this years ago, on how to use Python to come up with a 12-digit prime. But suppose you do this often, and so you&#8217;d like memorize a 12-digit prime so you could enter it without [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/24/memorable-12-digit-primes/">Memorable 12-digit primes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>There&#8217;s an old joke about having to enter a 12-digit prime number to continue using a program. I wrote about this <a href="https://www.johndcook.com/blog/2013/05/20/need-a-12-digit-prime/">years ago</a>, on how to use Python to come up with a 12-digit prime. But suppose you do this often, and so you&#8217;d like memorize a 12-digit prime so you could enter it without having to run a Python script.</p>
<p>Here&#8217;s an easy one: 999999999989. The following code verifies that this number is prime.</p>
<pre>&gt;&gt;&gt; from sympy import isprime
&gt;&gt;&gt; isprime(999999999989)
True
</pre>
<h2>Major system encoding</h2>
<p>Maybe that&#8217;s too easy, so you&#8217;d like to first find a 12-digit prime, then memorize it using the <a href="https://www.johndcook.com/blog/2021/07/26/major-memory-keypad/">Major memory system</a>.</p>
<pre>&gt;&gt;&gt; import random
&gt;&gt;&gt; while True:
...     candidate = random.randint(10**11, 10**12 - 1)
...     if isprime(candidate):
...         print(candidate)
...         break
...
298412857819
</pre>
<p>To encode 298412857819, you might come up with &#8220;knob o&#8217; fire, tin foil, cave tuba.&#8221; These things look ridiculous when written down, but they actually work, especially when you come up with them yourself: it&#8217;s hard to reuse someone else&#8217;s mnemonics.</p>
<h2>Working backward</h2>
<p>To come up with a mnemonic that looks reasonable in writing, you might approach the problem the other way around: generate memorable phrases until one happens to encode as a 12-digit prime. I asked Grok to do this, and it came up with &#8220;A young man sits near the lake” which decodes to 273201024157.</p>
<pre>&gt;&gt;&gt; isprime(273201024157)
True
</pre>
<p>I read a book on memory tricks one time, and the chapter on the Major system began by stating some ordinary sentence and the corresponding number, then asked which you&#8217;d rather memorize. This was highly misleading. The author came up with the mnemonic first then calculated the number.</p>
<h2>Mnemonics in practice</h2>
<p>In practice the number comes first: you construct a mnemonic for a number; you don&#8217;t start with a mnemonic and search for a number it fits. And you are <em>far</em> more likely to come up with nonsensical streams like &#8220;knob o&#8217; fire, tin foil, cave tuba&#8221; than prose like &#8220;A young man sits near the lake.” The system works, with practice, but it doesn&#8217;t <em>look</em> like it would work when you write down the mnemonics. The fact that the series of words is nonsensical may help you form durable mental images.</p>
<p>If you try to remember &#8220;A young man sits near the lake” you have to remember a sequence of <em>words</em>, not a sequence of <em>images</em>. &#8220;A young man sits near the lake” and &#8220;A young man sitting near a lake&#8221; correspond to the same mental image, but they&#8217;re different sequences of words and decode to different numbers. A sequence of words might be easier to remember in the short term, but a sequence of vivid mental images sticks better over time.</p>
<p>To be fair, &#8220;knob o&#8217; fire&#8221; is also fragile, since &#8220;o&#8221; could easily become &#8220;of&#8221;. But this goes back to what works in practice versus what looks like it would work in writing. I chose &#8220;knob o&#8217; fire&#8221; because it looked better in writing than some other alternatives I came up with.</p>
<p>In practice people who use the Major system to remember words often use <em>pegs</em>, fixed encodings of sequences of digits, rather than improvising encodings. This eliminates ambiguities. For example, suppose one of your pegs is &#8220;rover&#8221; for 484 and you imagine a Mars rover. Then when recalling a number, there&#8217;s no ambiguity whether &#8220;Mars rover&#8221; should decode to 340 (for Mars) or 484 (for rover), assuming you have a different peg for 340, such as Morse code.</p>The post <a href="https://www.johndcook.com/blog/2026/11/24/memorable-12-digit-primes/">Memorable 12-digit primes</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/24/memorable-12-digit-primes/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Finite Projective Spaces</title>
		<link>https://www.johndcook.com/blog/2026/11/23/finite-projective-spaces/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 23:49:05 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Combinatorics]]></category>
		<category><![CDATA[Geometry]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248192</guid>

					<description><![CDATA[<p>Just as there are finite projective planes, there are also finite projective spaces of higher dimension. The axioms of a projective space are Any two distinct points lie on exactly one line. If A, B, C, and D are distinct points and the lines AB and CD meet, then the lines AC and BD also meet. [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/23/finite-projective-spaces/">Finite Projective Spaces</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Just as there are <a href="https://www.johndcook.com/blog/2026/11/08/finite-geometries/">finite projective planes</a>, there are also finite projective spaces of higher dimension.</p>
<p>The axioms of a projective space are</p>
<ol dir="ltr">
<li>Any two distinct points lie on exactly one line.</li>
<li>If <em>A</em>, <em>B</em>, <em>C</em>, and <em>D</em> are distinct points and the lines <em>AB</em> and <em>CD</em> meet, then the lines <em>AC</em> and <em>BD</em> also meet.</li>
<li>Every line contains at least three points.</li>
<li>There are at least two lines.</li>
</ol>
<p>The second axiom is subtly different from its counterpart for projective planes. It allows for skew lines but not parallel lines. There&#8217;s no explicit concept of dimension in these axioms, but dimension can be well-defined by induction.</p>
<p>What I find most interesting about finite projective spaces is that they are in some sense simpler than projective planes. Usually higher dimensions allow for more complicated behavior, but at least as far as classification goes, higher dimensional spaces are simpler.</p>
<p>Finite projective planes are not determined by the number of points they contain. As mentioned in <a href="https://www.johndcook.com/blog/2026/11/08/finite-geometries/">this post</a>, there are four different projective planes with 10 points. It is unknown how many different projective planes there are with 17 points; there are at least 22. But for dimension <em>d</em> ≥ 3, there is at most one projective space with a specified number of points.</p>
<p>Given a prime power <em>q</em>, there is a unique field <em>F </em>with <em>q</em> elements, and one can construct a projective space of dimension <em>d</em> over <em>F</em> analogously to how one constructs a real projective space of dimension <em>d</em>: Take the non-zero vectors in <em>F</em><sup><em>d</em> + 1</sup> and mod out by non-zero scalar multiples. And up to isomorphism this is the <strong>only</strong> way to construct a finite projective space if <em>d</em> ≥ 3. In technical terms, finite projective planes can be non-Desarguesian but higher-dimensionsal projective spaces cannot.</p>
<h2>Related posts</h2>
<ul>
<li class='link'><a href='https://www.johndcook.com/blog/2026/11/09/finite-affine-planes/'>Finite affine planes</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2026/11/09/finite-hyperbolic-planes/'>Finite hyperbolic planes</a></li>
<li class='link'><a href='https://www.johndcook.com/blog/2026/11/09/combinatorial-designs/'>Combinatorial designs</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/11/23/finite-projective-spaces/">Finite Projective Spaces</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Two generators suffice</title>
		<link>https://www.johndcook.com/blog/2026/11/23/two-generators-suffice/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 17:28:34 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Group theory]]></category>
		<category><![CDATA[Probability]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248246</guid>

					<description><![CDATA[<p>Every finite simple group is generated by at most two elements. This is a consequence of the classification of finite simple groups (CFSG). Not only that, with high probability any two elements chosen at random will work. For non-Abelian finite simple groups G, the probability that two randomly chosen elements will generate G approaches 1 [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/23/two-generators-suffice/">Two generators suffice</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Every finite simple group is generated by at most two elements. This is a consequence of the classification of finite simple groups (CFSG).</p>
<p>Not only that, with high probability any two elements chosen at random will work. For non-Abelian finite simple groups <em>G</em>, the probability that two randomly chosen elements will generate <em>G</em> approaches 1 as the size of the group |<em>G</em>| → ∞ [1].</p>
<p>Note that this result was published before the CFSG was complete. The <em>list</em> of finite simple groups was complete, and widely believed to be complete, but the <em>proof</em> that it was complete was not finished.</p>
<p>[1] W. M. Kantor and A. Lubotzky, “The probability of generating a finite classical group,” <em>Geometriae Dedicata</em> 36 (1990), 67–87.</p>The post <a href="https://www.johndcook.com/blog/2026/11/23/two-generators-suffice/">Two generators suffice</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Gravity on an oblate planet</title>
		<link>https://www.johndcook.com/blog/2026/11/23/oblate-spheroid-gravity/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 10:17:22 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Orbital mechanics]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248274</guid>

					<description><![CDATA[<p>A spherical planet is not a point mass, but the gravity on the surface is the same as if the mass were concentrated at a point in the center. If a planet is not spherical but rather an oblate spheroid, the point-mass approximation doesn&#8217;t work. Suppose a planet has equatorial radius a and polar radius b, with a [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/23/oblate-spheroid-gravity/">Gravity on an oblate planet</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>A spherical planet is not a point mass, but the gravity on the surface is the same as if the mass were concentrated at a point in the center. If a planet is not spherical but rather an oblate spheroid, the point-mass approximation doesn&#8217;t work.</p>
<p>Suppose a planet has equatorial radius <em>a</em> and polar radius <em>b</em>, with <em>a</em> significantly larger than <em>b</em>. We&#8217;ll compare the point-mass model with the uniform density model.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/mesklin.png" alt="Oblate spheroid" width="480" height="257" /></p>
<p>If the surface of the planet were a massless shell, with all the mass concentrated at a point in the center, the force of gravity would be inversely proportional to the square of the distance to the center. Gravity at the poles would be proportional to 1/<em>b</em>² and gravity on the equator would be proportional to 1/<em>a</em>². The ratio of the polar gravity to equatorial gravity would be (<em>a</em>/<em>b</em>)².</p>
<p>The model above grossly overestimates the variation in gravity. It&#8217;s not even useful for moderately oblate planets, such as the one we live on.</p>
<p>It&#8217;s true that if <em>a</em>/<em>b</em> is nearly 1 then the gravity ratio is also near 1, but the approximation overestimates the effect of flattening by an order of magnitude.</p>
<p><a href="https://www.johndcook.com/blog/2022/10/14/eccentricity-flatness-aspect/">Flattening</a> is defined to be</p>
<p style="padding-left: 40px;">ε = 1 − <em>b</em>/<em>a</em>.</p>
<p>Assuming the planet has uniform density, the ratio of polar gravity to equatorial gravity has the following expansion in ε:</p>
<p style="padding-left: 40px;">1 + ε/5 + (9/175) ε² + …</p>
<p>Now <em>a</em>/<em>b</em> = 1/(1 − ε) and so</p>
<p style="padding-left: 40px;">(<em>a</em>/<em>b</em>)² = 1/(1 − ε)² = 1 + 2ε + 3ε² + …</p>
<p>To first order approximation, the effect of flattening is ε/5, but the point-mass approximation estimates the effect as 2ε, off by a factor of 10.</p>
<p>I became interested in this problem because I started reading a novel that takes place on an oblate spheroidal planet Mesklin with enormous variation in gravitational strength from pole to equator [1]. On a more nearly spherical planet like Earth, oblateness still matters a great deal when calculating satellite orbits. This is called the <a href="https://www.johndcook.com/blog/2025/07/07/j2-effect/">J2 effect</a>.</p>
<p><strong>Update</strong>: Here is a plot of gravity and apparent gravity on Mesklin as functions of latitude. Apparent gravity varies from 3 <em>g</em> at the equator to 665 <em>g</em> at the poles.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/mesklin2.png" width="1500" height="900" /><br />
[1] Hal Clement, Mission of Gravity, serialized in 1953, published as a book in 1954. The planet in the novel rotates every 18 minutes, which explains why it is so oblate. The rotation also increases the ratio of apparent gravity because centrifugal force decreases the apparent gravity at the equator.</p>
<p>&nbsp;</p>The post <a href="https://www.johndcook.com/blog/2026/11/23/oblate-spheroid-gravity/">Gravity on an oblate planet</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What is the Generalized Riemann Hypothesis?</title>
		<link>https://www.johndcook.com/blog/2026/11/20/grh/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 21 Nov 2026 03:35:05 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Number theory]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248267</guid>

					<description><![CDATA[<p>There were two proofs of the Riemann Hypothesis (RH) announced today: one AI-generated and one human-generated.Both claimed to prove something more general, the Generalized Riemann Hypothesis (GRH) which of course includes RH as a special case. The RH says that the all the zero of the Riemann zeta function ζ(s) in the critical strip, i.e. [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/20/grh/">What is the Generalized Riemann Hypothesis?</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>There were two proofs of the Riemann Hypothesis (RH) announced today: one <a href="https://math.mit.edu/~drew/grh/">AI-generated</a> and one <a href="https://math216.wordpress.com/2026/11/20/hurried-announcement-alessandro-masullo-grh/">human-generated</a>.Both claimed to prove something more general, the Generalized Riemann Hypothesis (GRH) which of course includes RH as a special case.</p>
<p>The RH says that the all the zero of the Riemann zeta function ζ(<em>s</em>) in the critical strip, i.e. the region of the complex plane where <em>s</em> has real part between 0 and 1, occur on the central line Re(<em>s</em>) = ½.</p>
<p>There is a ladder of conjectures of that replace ζ(<em>s</em>) with ever more general families of functions, always with the same conclusion, that all the zeros in the critical strip lie on the central line.</p>
<p>The bottom rung of the latter is the Riemann Hypothesis with ζ(<em>s</em>). The next rung up is the Generalized Riemann Hypothesis for the class of functions <em>L</em>(<em>s</em>, χ). The higher rungs are more abstract than I care to get into.</p>
<p>The Riemann zeta function is defined to be analytic continuation of the function</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/grh1.svg" alt="\zeta(s) = \sum_{n=1}^\infty \frac{1}{n^s}" width="106" height="54" /></p>
<p>The expression above is only valid for <em>s</em> with real part greater than 1, but the function can be uniquely extended to the entire complex plane, except for the point <em>s</em> = 1, by analytic continuation.</p>
<p>The functions <em>L</em>(<em>s</em>, χ) replace the numerator in the sum above with a function χ(<em>n</em>).</p>
<p><img loading="lazy" decoding="async" class="aligncenter" style="background-color: white;" src="https://www.johndcook.com/grh2.svg" alt="L(s, \chi) = \sum_{n=1}^\infty \frac{\chi(n)}{n^s}" width="147" height="54" /></p>
<p>Again this function is defined by the series above where the series converges and extended by analytic continuation to the rest of the complex plane. The remaining work is to describe the class of functions the χ belong to. Importantly this class of functions includes the constant function χ(<em>n</em>) = 1, which corresponds to ζ(<em>s</em>).</p>
<p>The functions χ(<em>n</em>) are called Dirichlet characters of modulus <em>m</em>, for positive integer <em>m</em>, which means χ: ℤ → ℂ satisfies</p>
<ol>
<li>χ(<em>ab</em>) = χ(<em>a</em>) χ(<em>b</em>)</li>
<li>χ(<em>a</em>) = 0 iff gcd(<em>a</em>, <em>m</em>) &gt; 1</li>
<li>χ has period <em>m</em>.</li>
</ol>
<p>For example, χ could be a <a href="https://www.johndcook.com/blog/2019/02/12/computing-jacobi-symbols/">Legendre or Jacobi symbol</a> with <em>n</em> on top and <em>m</em> on bottom. For the Legendre symbol <em>m</em> must be an odd prime, and for the Jacobi symbol <em>m</em> is only required to be an odd number.</p>The post <a href="https://www.johndcook.com/blog/2026/11/20/grh/">What is the Generalized Riemann Hypothesis?</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Supersequences and Superpermutations</title>
		<link>https://www.johndcook.com/blog/2026/11/18/supersequences/</link>
					<comments>https://www.johndcook.com/blog/2026/11/18/supersequences/#comments</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 00:10:21 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Combinatorics]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248258</guid>

					<description><![CDATA[<p>A word is universal if it contains every permutation of its alphabet as a subsequence: the letters must appear in order, but gaps are allowed. For example, you can find all six permutations of the digits 1, 2, and 3 inside the string 1231213. Not all permutations can be found as a contiguous substring—that would [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/18/supersequences/">Supersequences and Superpermutations</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>A word is <em>universal</em> if it contains every permutation of its alphabet as a subsequence: the letters must appear in order, but gaps are allowed.</p>
<p>For example, you can find all six permutations of the digits 1, 2, and 3 inside the string 1231213. Not all permutations can be found as a contiguous substring—that would be a superpermutation—but all can be found as a subsequence.</p>
<p>The word</p>
<p style="padding-left: 40px;">01234567890123456780293451670823451960782134506978231405678213904567823109456782301</p>
<p>is universal for the set of 10 digits. This word was discovered some time ago, but Jason Davies has recently proved that this the smallest universal word on 10 digits. It has 83 characters, and Davies proved that no word of 82 characters is universal over the digits. See his paper <a href="https://github.com/jasondavies/permutation-supersequence-length">here</a>.</p>
<p>I&#8217;m surprised that all 10! = 3,628,800 permutations of 10 digits can be found as subsequences of such a relatively short word.</p>
<p>Universal words, or <strong>supersequences</strong>, are easily confused with <strong>superpermutations</strong>. See OEIS sequences <a href="https://oeis.org/A062714">A062714</a> and <a href="https://oeis.org/A180632">A180632</a>. Minimal length superpermutations are necessarily longer than minimal length supersequences [1] since the requirements on the former are stricter, requiring permutations to appear as contiguous substrings and not merely as subsequences. In other words, every superpermutation is a supersequence, but not vice versa.</p>
<p>For example,</p>
<p style="padding-left: 40px;">123412314231243121342132413214321</p>
<p>is a minimal superpermutation on four symbols while</p>
<p style="padding-left: 40px;">123412314213</p>
<p>is a minimal supersequence.</p>
<p>Note that it&#8217;s trivial to produce a supersequence: just concatenate all <em>n</em>! permutations of the symbols into one sequence. But finding <em>minimal</em> supersequences and <em>minimal</em> superpermutations is challenging.</p>
<p>&nbsp;</p>
<p>[1] For <em>n</em> = 1 or 2 the minimal supersequence and minimal superpermutation are the same. For <em>n</em> &gt; 2 they are not.</p>The post <a href="https://www.johndcook.com/blog/2026/11/18/supersequences/">Supersequences and Superpermutations</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.johndcook.com/blog/2026/11/18/supersequences/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Taxis and hash functions</title>
		<link>https://www.johndcook.com/blog/2026/11/16/taxis-and-hash-functions/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 16 Nov 2026 14:46:36 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Privacy]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248251</guid>

					<description><![CDATA[<p>In 2014 New York City released dump of trip and fare logs from NYC taxis in the previous year. In an attempt to protect privacy, the taxi license numbers and medallion numbers were hashed using the MD5 hash function. If you&#8217;re familiar with secure has functions, your first reaction might be that the problem with [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/16/taxis-and-hash-functions/">Taxis and hash functions</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>In 2014 New York City released dump of trip and fare logs from NYC taxis in the previous year. In an attempt to protect privacy, the taxi license numbers and medallion numbers were hashed using the MD5 hash function.</p>
<p>If you&#8217;re familiar with secure has functions, your first reaction might be that the problem with the scenario above is that NYC used a hash function that had been shown to be broken a decade earlier. But that was not the problem.</p>
<p>MD5 was considered broken in 2004 because someone showed how to create a hash collision, not because one can calculate a preimage. It&#8217;s easy to create two messages that have the same MD5 hash value. However, if you have a message <em>m</em> with hash MD5(<em>m</em>) = <em>h</em>, it is still not practical to infer <em>m</em> from <em>h</em> in general. However, if you know that your message <em>m</em> comes from a fairly small set, such as the set of all NYC taxi license numbers, you can hash them all and see which one hashes to <em>h</em>. This would be true for a more secure hash function like SHA-256 just as much as for MD5.</p>
<p>The root of the problem was that the hash function was known. If the city had used a keyed hash, this would have prevented anyone from simply hashing all the license and medallion numbers. If they had chosen a random number and concatenated it to each value before hashing, this would have prevented an attacker from creating a lookup table, even using MD5. There may have been other privacy problems with the data, but this particular line of attack would have been blocked.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2024/02/17/frequency-analysis/">Frequency analysis</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2018/11/06/what-is-differential-privacy/">Differential privacy</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/data-privacy/">Data privacy consulting</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/11/16/taxis-and-hash-functions/">Taxis and hash functions</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Orbital footnote</title>
		<link>https://www.johndcook.com/blog/2026/11/15/orbital-footnote/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Mon, 16 Nov 2026 02:19:01 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Orbital mechanics]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248249</guid>

					<description><![CDATA[<p>A couple days ago I wrote a post about the orbit of a new dwarf planet candidate. The article says the newly discovered object, ED138, has an orbital period of 281.1 years and is “46 times farther from the sun than Earth is.” The earlier post showed that we can infer from Kepler&#8217;s third law [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/15/orbital-footnote/">Orbital footnote</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>A couple days ago I wrote a <a href="https://www.johndcook.com/blog/2026/11/13/kepler-and-the-dwarf/">post</a> about the orbit of a new dwarf planet candidate. The article says the newly discovered object, ED138, has an orbital period of 281.1 years and is “46 times farther from the sun than Earth is.”</p>
<p>The earlier post showed that we can infer from Kepler&#8217;s third law that the orbit must be elliptical, and that therefore the phrase “46 times farther from the sun” is ambiguous. The post worked out the orbit of ED138 under the assumption that the object is 46 AU from the sun at its aphelion, the point in its orbit furthest from the sun.</p>
<p>But what if is “46 times farther from the sun” refers to the <em>average</em> distance from the sun? I added a footnote to the post to explore this possibility. I wanted to expand that footnote into its own post because there&#8217;s something I find interesting about it.</p>
<p>If the <em>maximum</em> distance of ED138 from the sun is 46 AU, then the orbit is an ellipse with eccentricity <em>e</em> =  0.072. My intuition was that if we assumed the <em>average</em> distance from ED138 to the sun is 46 AU it wouldn&#8217;t make much difference. But it does. In this case the eccentricity becomes <em>e</em> = 0.38, about five times larger.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/ed138_plot2.png" width="640" height="480" /></p>
<p>The outer ellipse, plotted in blue, is the orbit assuming 46 AU is the maximum distance. It&#8217;s nearly circular. The blue dot is the position of the sun, near the center of the ellipse.</p>
<p>The inner ellipse, plotted in orange, is the orbit assuming 46 AU is the mean distance. It&#8217;s noticeably more elliptical. The orange dot is the position of the sun, further away from the center of the ellipse.</p>
<p><strong>Update</strong>: Someone pointed out an error in my original post, and I updated the plot. Now I&#8217;m back to the difference between the two orbits not being so big. As always, the change in eccentricity makes more of a difference to the position of the sun in the orbit than to the shape of the orbit.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2022/10/14/eccentricity-flatness-aspect/">Eccentricity, Flattening, and Aspect Ratio</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2022/11/01/kepler-newton/">Solving Kepler&#8217;s equation with Newton&#8217;s method</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2025/02/28/max-min-orbital-speed/">Maximum and minimum orbital speed</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/11/15/orbital-footnote/">Orbital footnote</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The longest polynomial level set</title>
		<link>https://www.johndcook.com/blog/2026/11/14/erdos-lemniscate/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 14 Nov 2026 15:54:10 +0000</pubDate>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Complex analysis]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248242</guid>

					<description><![CDATA[<p>Let p(z) be a polynomial with leading coefficient 1, i.e. a monic polynomial. What is the maximum length of the curve {z : &#124;p(z)&#124; = 1} for each degree n? Erdős conjectured that the maximum length was obtained by the polynomial p(z) = zn − 1. He was right, as Teng Zhang proved recently. Examples [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/14/erdos-lemniscate/">The longest polynomial level set</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>Let <em>p</em>(<em>z</em>) be a polynomial with leading coefficient 1, i.e. a monic polynomial. What is the maximum length of the curve</p>
<p>{<em>z</em> : |<em>p</em>(<em>z</em>)| = 1}</p>
<p>for each degree n?</p>
<p>Erdős conjectured that the maximum length was obtained by the polynomial <em>p</em>(<em>z</em>) = <em>z</em><sup><em>n</em></sup> − 1. He was right, as Teng Zhang proved <a href="https://arxiv.org/abs/2611.12830v1">recently</a>.</p>
<h2>Examples</h2>
<p>Here&#8217;s an example for degree five. The maximum length is obtained by <em>p</em>(<em>z</em>) = <em>z</em><sup>5</sup> − 1.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/erdos_lemniscate1.png" width="400" height="400" /></p>
<p>This curve has length 15.02.</p>
<p>Here&#8217;s the corresponding curve for <em>p</em>(<em>z</em>) = <em>z</em><sup>5</sup> − <em>z</em></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/erdos_lemniscate2.png" width="400" height="400" /></p>
<p>which has length 6.909.</p>
<p>In general the level set {<em>z</em> : |<em>p</em>(<em>z</em>)| = 1} need not be connected, in which case the length is the sum of the lengths of the components.</p>
<p>Here&#8217;s an example that tweaks the constant parameter of the optimal curve <em>p</em>(<em>z</em>) = <em>z</em><sup>5</sup> − 1.1.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://www.johndcook.com/erdos_lemniscate3.png" width="400" height="400" /></p>
<p>This curve has (total) length 14.59.</p>
<h2>Details</h2>
<p>The length of the maximum curve for given <em>n</em> is the length for the polynomial <em>p</em>(<em>z</em>) = <em>z</em><sup><em>n</em></sup> − 1. The only curves obtaining the maximum length are translations and rotations of this curve.</p>
<p>Note that for <em>n</em> = 1 the maximum curve is a circle and for <em>n</em> = 2 the curve is the lemniscate of Bernoulli. The general curve is called the Erdős lemniscate of order <em>n</em>, generalizing Bernoulli&#8217;s lemniscate.</p>
<p>The maximum length for given <em>n</em> is</p>
<p style="padding-left: 40px;">2<sup>1/<em>n</em></sup> <em>B</em>(1/<em>n</em>, 1/2<em>n</em>)</p>
<p>where <em>B</em> is the beta function.</p>
<p>The Erdős lemniscates look similar to the &#8220;rose&#8221; curves <em>r</em> = cos(<em>n</em>θ), but these curves are not polynomial level sets.</p>
<h2>Related posts</h2>
<ul>
<li class="link"><a href="https://www.johndcook.com/blog/2023/10/04/lemniscate-functions/">Lemniscate functions</a></li>
<li class="link"><a href="https://www.johndcook.com/blog/2023/01/20/cassini-ovals/">Cassini ovals</a></li>
</ul>The post <a href="https://www.johndcook.com/blog/2026/11/14/erdos-lemniscate/">The longest polynomial level set</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Peeking inside the bash rabbit hole</title>
		<link>https://www.johndcook.com/blog/2026/11/14/bash-rabbit-hole/</link>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Sat, 14 Nov 2026 13:09:57 +0000</pubDate>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Unix]]></category>
		<guid isPermaLink="false">https://www.johndcook.com/blog/?p=248239</guid>

					<description><![CDATA[<p>I have much bigger issues to be concerned with than saving a few seconds of typing with obscure bash features. But precisely because I have bigger issues on my plate, it&#8217;s fun to take a moment and solve some little tangible problem. The shell !$ saves the last part of the latest command. (Mnemonic: bang [&#8230;]</p>
The post <a href="https://www.johndcook.com/blog/2026/11/14/bash-rabbit-hole/">Peeking inside the bash rabbit hole</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></description>
										<content:encoded><![CDATA[<p>I have much bigger issues to be concerned with than saving a few seconds of typing with obscure bash features. But precisely because I have bigger issues on my plate, it&#8217;s fun to take a moment and solve some little tangible problem.</p>
<p>The shell <code>!$</code> saves the last part of the latest command. (Mnemonic: bang often refers to commands, such as <code>!!</code> to redo the previous command, and cash often refers to the last of something, such as the end of a line in a regular expression.)</p>
<p>This comes in handy, for example, when you copy a file to a directory and then want to cd into that directory.</p>
<pre>
cp myfile /big/long/path
cd !$
</pre>
<p>The <code>!$</code> variable is fragile, however. The sequence of commands</p>
<pre>
cp myfile /big/long/path
ls
cd !$
</pre>
<p>won&#8217;t work because after running <code>ls</code> the variable <code>!$</code> now contains &#8220;ls&#8221; rather than &#8220;/big/long/path&#8221;.</p>
<p>There are two ways to fix this. In the previous example you could change the last command to </p>
<pre>cd !-2:$</pre>
<p>This says go back two commands (<code>!-2</code>) and extract (<code>:</code>) the last argument (<code>$</code>).</p>
<p>Another possibility is </p>
<pre>cd !cp:$</pre>
<p>This says to pull up the most recent command that started with &#8220;cp&#8221; (<code>!cp</code>) and extract the last argument.</p>
<p>This only scratches the surface of conveniences bash offers. To learn about similar features, search on &#8220;history expansion&#8221; or &#8220;event designators.&#8221;</p>
<p>Because bash offers so many shortcuts, it&#8217;s hard to learn any of them from reading the manual: nothing will stick. It reminds me of when I was in Paris and had one hour to see the Louvre. I should have meandered around a room or two and been content with that. Instead, I blitzed through the museum. I wanted to &#8220;see the Louvre&#8221; but I didn&#8217;t really <em>see</em> anything. </p>The post <a href="https://www.johndcook.com/blog/2026/11/14/bash-rabbit-hole/">Peeking inside the bash rabbit hole</a> first appeared on <a href="https://www.johndcook.com/blog">John D. Cook</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
