<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2026-07-12</id>
	<title>Blog: 2026-07-12 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2026-07-12"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2026-07-12&amp;action=history"/>
	<updated>2026-07-14T01:16:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2026-07-12&amp;diff=1557&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Making distinct pairs out of a group of 15  &lt;pre&gt; In [33]: def permute(l, n):     ...:     copy = list(l)     ...:     new = []     ...:     index = 0     ...:     for _ in range(len(l)):     ...:         new.append(copy.pop(index))     ...:         index = (index + n) % max(len(copy), 1)     ...:     return new     ...:   In [34]: permute(ns, 1) Out[34]: [1, 3, 5, 7, 9, 11, 13, 15, 4, 8, 12, 2, 10, 6, 14]  In [35]: permute(ns, 0) Out[35]: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2026-07-12&amp;diff=1557&amp;oldid=prev"/>
		<updated>2026-07-12T17:09:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Making distinct pairs out of a group of 15  &amp;lt;pre&amp;gt; In [33]: def permute(l, n):     ...:     copy = list(l)     ...:     new = []     ...:     index = 0     ...:     for _ in range(len(l)):     ...:         new.append(copy.pop(index))     ...:         index = (index + n) % max(len(copy), 1)     ...:     return new     ...:   In [34]: permute(ns, 1) Out[34]: [1, 3, 5, 7, 9, 11, 13, 15, 4, 8, 12, 2, 10, 6, 14]  In [35]: permute(ns, 0) Out[35]: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Making distinct pairs out of a group of 15&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
In [33]: def permute(l, n):&lt;br /&gt;
    ...:     copy = list(l)&lt;br /&gt;
    ...:     new = []&lt;br /&gt;
    ...:     index = 0&lt;br /&gt;
    ...:     for _ in range(len(l)):&lt;br /&gt;
    ...:         new.append(copy.pop(index))&lt;br /&gt;
    ...:         index = (index + n) % max(len(copy), 1)&lt;br /&gt;
    ...:     return new&lt;br /&gt;
    ...: &lt;br /&gt;
&lt;br /&gt;
In [34]: permute(ns, 1)&lt;br /&gt;
Out[34]: [1, 3, 5, 7, 9, 11, 13, 15, 4, 8, 12, 2, 10, 6, 14]&lt;br /&gt;
&lt;br /&gt;
In [35]: permute(ns, 0)&lt;br /&gt;
Out[35]: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]&lt;br /&gt;
&lt;br /&gt;
In [36]: permute(ns, 2)&lt;br /&gt;
Out[36]: [1, 4, 7, 10, 13, 2, 6, 11, 15, 8, 14, 9, 5, 12, 3]&lt;br /&gt;
&lt;br /&gt;
In [37]: permute(ns, 3)&lt;br /&gt;
Out[37]: [1, 5, 9, 13, 3, 8, 14, 6, 12, 7, 2, 15, 4, 11, 10]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>