<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Looking for a special case of latin squares</title>
	<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares/</link>
	<description>Comments on Ask MetaFilter post Looking for a special case of latin squares</description>
	<pubDate>Thu, 01 Feb 2007 17:07:58 -0800</pubDate>
	<lastBuildDate>Thu, 01 Feb 2007 17:07:58 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Looking for a special case of latin squares</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares</link>	
		<description>Mathfilter: Is there a name for the special case of the latin square in which each possible pair of adjacent elements appears exactly once in all the rows? &lt;br /&gt;&lt;br /&gt; Sorry my description is so convoluted. Here&apos;s an example latin square that displays this property:&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
1  2  3  4&lt;br&gt;
2  4  1  3&lt;br&gt;
3  1  4  2&lt;br&gt;
4  3  2  1&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
Are there any proofs about the existance or non-existance of such squares for other sizes? Better yet, is there an algorithm for generating them?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.56191</guid>
		<pubDate>Thu, 01 Feb 2007 16:29:34 -0800</pubDate>
		<dc:creator>Eamon</dc:creator>
		
			<category>math</category>
		
			<category>latinsquares</category>
		
	</item> <item>
		<title>By: vacapinta</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#845856</link>	
		<description>Do you mean like this for order-6?&lt;br&gt;
&lt;br&gt;
123456&lt;br&gt;
246135&lt;br&gt;
362514&lt;br&gt;
415263&lt;br&gt;
531642&lt;br&gt;
654321&lt;br&gt;
&lt;br&gt;
If so, I believe its a certain type of matrix but I can&apos;t recall the name. I used a pretty simple rule for building that one which should generalize to NxN. &lt;br&gt;
&lt;br&gt;
Here&apos;s a hint: If integer x is followed by y in one row, it will be followed by y+1 in the row below it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-845856</guid>
		<pubDate>Thu, 01 Feb 2007 17:07:58 -0800</pubDate>
		<dc:creator>vacapinta</dc:creator>
	</item><item>
		<title>By: mbrubeck</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#845857</link>	
		<description>None exist for size 3:  If &quot;a b c&quot; are the elements in row 1, then &quot;a c&quot; cannot be adjacent in any row because then &quot;a&quot; would be in column 1 or &quot;c&quot; would be in column 3.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-845857</guid>
		<pubDate>Thu, 01 Feb 2007 17:09:35 -0800</pubDate>
		<dc:creator>mbrubeck</dc:creator>
	</item><item>
		<title>By: mbrubeck</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#845860</link>	
		<description>vacapinta&apos;s rule looks like it will work for all even n, but no odd n (at least not without modification).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-845860</guid>
		<pubDate>Thu, 01 Feb 2007 17:11:06 -0800</pubDate>
		<dc:creator>mbrubeck</dc:creator>
	</item><item>
		<title>By: jepler</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#845893</link>	
		<description>I wrote a program that searches all the possible squares of a given size.  It&apos;s a very brute-force approach.  It gives results for 4 and 6 in short order, quickly gives no results for 3 or 5, and I&apos;m still waiting on 7 and 8.   &lt;a href=&quot;http://emergent.unpy.net/index.cgi-files/sandbox/eamon.py&quot;&gt;eamon.py&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-845893</guid>
		<pubDate>Thu, 01 Feb 2007 17:54:19 -0800</pubDate>
		<dc:creator>jepler</dc:creator>
	</item><item>
		<title>By: escabeche</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#846028</link>	
		<description>An easier way to describe vacapinta&apos;s rule (I think) is the following appealing formulation:  to make an n x n square with the desired property, place in position (ij) the result of reducing ij modulo (n+1).  Without thinking about it too hard, I guess this should work whenever n+1 is prime, i.e. this handles n=4 (OP&apos;s case), n=6 (vacapinta&apos;s case), n=10, etc., but not n=8.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-846028</guid>
		<pubDate>Thu, 01 Feb 2007 20:28:10 -0800</pubDate>
		<dc:creator>escabeche</dc:creator>
	</item><item>
		<title>By: jepler</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#846202</link>	
		<description>Indeed, my implementation of vacapinta&apos;s method fails to produce an 8x8 square and a 14x14 square.  It quickly produces a 98x98 board, but the 996x996 board takes a bit of time. &lt;a href=&quot;http://emergent.unpy.net/files/sandbox/eamon2.py&quot;&gt;eamon2.py&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
escabeche&apos;s method works, though I have to change my row and column numbers to be 1-based rather than 0-based.  It quickly generates a 996x996 board, with the &quot;verify&quot; step taking the majority of the time. &lt;a href=&quot;http://emergent.unpy.net/files/sandbox/eamon3.py&quot;&gt;eamon3.py&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-846202</guid>
		<pubDate>Fri, 02 Feb 2007 07:17:15 -0800</pubDate>
		<dc:creator>jepler</dc:creator>
	</item><item>
		<title>By: jepler</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#846203</link>	
		<description>I meant a 96x96 board, not 98x98.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-846203</guid>
		<pubDate>Fri, 02 Feb 2007 07:17:48 -0800</pubDate>
		<dc:creator>jepler</dc:creator>
	</item><item>
		<title>By: Eamon</title>
		<link>http://ask.metafilter.com/56191/Looking-for-a-special-case-of-latin-squares#846298</link>	
		<description>Thanks so much, everybody! I think it would be relatively easy to prove that such a square exists of size n x n iff n+1 is prime now. For my specific application (experimental design), I can focus on an algorithm that minimizes the reappearance of pairs when this isn&apos;t the case.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56191-846298</guid>
		<pubDate>Fri, 02 Feb 2007 09:30:28 -0800</pubDate>
		<dc:creator>Eamon</dc:creator>
	</item>
	</channel>
</rss>
