¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
²èÁü¤¬É½¼¨¤µ¤ì¤Ê¤¤¤Î¤ÇÁ´¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:02:06¡¡¡¡ ¡¡¡¡51694
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
ɽ¼¨¤µ¤ì¤Þ¤·¤¿¡£
AB¾å¤Ëʤ٤ë¤Î¤¬1Ä̤ꡣ
2¸Ä¤òÁª¤ó¤Çº¸¾å¤È±¦²¼¤Ë¤¹¤ë¤Î¤¬15Ä̤ꡣ
4¸Ä¤òÁª¤ó¤Ç2¸Ä¤º¤ÄÆ°¤«¤¹¤Î¤¬45Ä̤ꡣ
6¸Ä¤ò2¸Ä¤º¤ÄÆ°¤«¤¹¤Î¤¬15Ä̤ꡣ
¹ç·×76Ä̤ê¤È¤Ê¤ê¤Þ¤·¤¿¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:25:28¡¡¡¡ ¡¡¡¡51695
Mr.¥À¥ó¥Ç¥£
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§¤µ¤ó¤Î#51695¡¡¤ÈƱÍͤ˹ͤ¨¤Þ¤·¤¿¡£
°ñÌÚ»Ô¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:29:45¡¡¡¡ ¡¡¡¡51696
¥ä¥Ã¥³¥Á¥ã
¸ëÀФ¬
1¡ß1¤Î¤È¤­¢ª1Ä̤ê
2¡ß2¤Î¤È¤­¢ª2Ä̤ê
3¡ß3¤Î¤È¤­¢ª2+2¡ß1=4Ä̤ê
4¡ß4¤Î¤È¤­¢ª4+3¡ß2=10Ä̤ê
5¡ß5¤Î¤È¤­¢ª10+4¡ß4=26Ä̤ê
6¡ß6¤Î¤È¤­¢ª26+5¡ß10=76Ä̤ê
¡Ä
x¡ßx¤Î¤È¤­¤òf(x)¤È¤¹¤ë¤È¡¢f(x)=f(x-1)+(x-1)¡ßf(x-2)
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:33:46¡¡¡¡ ¡¡¡¡51697
¸Â³¦bot
¾¯¤·¹Í¤¨¤Æ¤âʬ¤«¤é¤Ê¤«¤Ã¤¿¤Î¤Ç¥×¥í¥°¥é¥à¤ò½ñ¤¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ä¡Ä
https://wandbox.org/permlink/JLI3YjbyBcuJLqwF
»»¿ô¤ÏÆñ¤·¤¤¡Ä¡Ä
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:35:06¡¡¡¡ ¡¡¡¡51698
»ç¤Îé¬é¯¤Î¿Í
n*n¤Î³Ê»Ò¤Î¾ì¹ç¤ÎÅú¤¨¤òA(n)¤È¤¹¤ë¡£
A(1)=1
A(2)=2

n¡æ2¤Î¤È¤­¡¢
¡úA(n+1)¡áA(n)+n*A(n-1)¤¬À®¤êΩ¤Ä¡£

¤³¤ì¤Ë¤è¤ê¡¢
A3¡á2+2*1¡á4
A4=4+3*2=10
A5=10+4*4=26
A6=26+5*10=76
//

¡ú¤ÎÀâÌÀ
(n+1)*(n+1)¤Î³Ê»Ò¤ÎÀÖ¤òº¸¤«¤é£±ÎóÌܤβ¿ÃÊÌܤËÃÖ¤¯¤«¤Ç¾ì¹çʬ¤±¤¹¤ë¤È¡¢
(1)²¼¤«¤é£±ÃÊÌܤËÃÖ¤¯¤È¤­¡¢¾ì¹ç¤Î¿ô¤Ï¡¢A(n)Ä̤ꡣ
(2)²¼¤«¤é£±ÃÊÌܰʳ°¤ËÃÖ¤¯¤È¤­¡¢¤½¤Î¸ëÀФÈAB¤Ë´Ø¤·ÂоΤȤʤë°ÌÃÖ¤ÎÀÖ¤¬·è¤Þ¤ë¡£
¤³¤Î2¸Ä¤Î¹Ô¤ÈÎó¤ò½ü¤¤¤¿¡¢»Ä¤ê¤Î(n-2)Îó(n-2)¹Ô¤Ë¤Ä¤¤¤Æ¤Î¾ì¹ç¤¬A(n-2)Ä̤ꡣ
(2)²¼¤«¤é£±ÃÊÌܰʳ°¤Ï¡¢nÄ̤ꤢ¤ë¤Î¤Ç¡¢¡ú¤òÆÀ¤ë¡£
//
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:53:36¡¡¡¡ ¡¡¡¡51699
»ç¤Îé¬é¯¤Î¿Í
¥ß¥¹¤ê¤Þ¤·¤¿¡£

ÄûÀµÈÇ

n*n¤Î³Ê»Ò¤Î¾ì¹ç¤ÎÅú¤¨¤òA(n)¤È¤¹¤ë¡£
A(1)=1
A(2)=2

n¡æ2¤Î¤È¤­¡¢
¡úA(n+1)¡áA(n)+n*A(n-1)¤¬À®¤êΩ¤Ä¡£

¤³¤ì¤Ë¤è¤ê¡¢
A3¡á2+2*1¡á4
A4=4+3*2=10
A5=10+4*4=26
A6=26+5*10=76
//

¡ú¤ÎÀâÌÀ
(n+1)*(n+1)¤Î³Ê»Ò¤ÎÀÖ¤òº¸¤«¤é£±ÎóÌܤβ¿ÃÊÌܤËÃÖ¤¯¤«¤Ç¾ì¹çʬ¤±¤¹¤ë¤È¡¢
(1)²¼¤«¤é£±ÃÊÌܤËÃÖ¤¯¤È¤­¡¢¾ì¹ç¤Î¿ô¤Ï¡¢A(n)Ä̤ꡣ
(2)²¼¤«¤é£±ÃÊÌܰʳ°¤ËÃÖ¤¯¤È¤­¡¢¤½¤Î¸ëÀФÈAB¤Ë´Ø¤·ÂоΤȤʤë°ÌÃÖ¤ÎÀÖ¤¬·è¤Þ¤ë¡£
¤³¤Î2¸Ä¤Î¹Ô¤ÈÎó¤ò½ü¤¤¤¿¡¢»Ä¤ê¤Î(n-1)Îó(n-1)¹Ô¤Ë¤Ä¤¤¤Æ¤Î¾ì¹ç¤¬A(n-1)Ä̤ꡣ
(2)²¼¤«¤é£±ÃÊÌܰʳ°¤Ï¡¢nÄ̤ꤢ¤ë¤Î¤Ç¡¢¡ú¤òÆÀ¤ë¡£
//
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 0:55:33¡¡¡¡ ¡¡¡¡51700
»ç¤Îé¬é¯¤Î¿Í
ºÇ½é¡¢µ¬Â§À­¤Ç¤ä¤í¤¦¤È¾®¤µ¤¤³Ê»Ò¤Ç¼Â¸³¤ò½Å¤Í¡¢»þ´Ö¤òϲÈñ¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ºÇ½é¤«¤é°ìÈ̹à¤ÇÁ²²½¼°¹Í¤¨¤ë¤Ù¤­¤Ç¤·¤¿¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 1:03:45¡¡¡¡ ¡¡¡¡51701
º£Ç¯¤«¤é¹âÎð¼Ô
A¤Î°ÌÃÖ¤ò(1,1)¡¢±¦²¼¤ò(1,6)¡¢B¤ò(6,6)¤È¤¹¤ë
A¤«¤éB¤Þ¤Ç6¤Äʤ٤ë.....1¤È¤ª¤ê
¤³¤³¤«¤é¾Ã¤»¤ë¤Î¤Ï¶ö¿ô¸Ä
¤³¤Î¤¦¤Á
2¸Ä¤òÈ´¤¯¡£6C2....È´¤±¤¿2²Õ½ê¤Ë¤ËÆþ¤ì¤é¤ì¤ë¤Î¤Ï1Ä̤ê¤Ê¤Î¤Ç¡¢6C2=15¤È¤ª¤ê
4¸Ä¤òÈ´¤¯¡£6C4
(x,y)¤ÎÂоΰÌÃÖ¤Ï(y,x)¤Ê¤Î¤Ç¡¢°Û¤Ê¤ë¿ô¤ÎÁȹ礻¤òµá¤á¤ë
(1,2,3,4)¤ò2ÁȤËʬ¤±¤ë¡£°ìÈÖ¾®¤µ¤¤¿ô¤È¾¤Î¿ô¤ÎÁȹ礻(2,1)(3,1)(4,1)
¤â¤¦°ì¤Ä¤Ï¡¢»Ä¤ê¤ÎÁȹ礻¤Ê¤Î¤Ç¡¢1Ä̤ê
È´¤¯°ÌÃ֤ȡ¢ÂоΰÌÃÖ¤ËÃÖ¤¯°ÌÃ֤ȤÎÁȹ礻¤Ç¡¢6C4*3¡á45¤È¤ª¤ê
6¸Ä¤òÈ´¤¯¡£6C0....
(1,2,3,4,5,6)¤ò2¸Ä¤º¤Ä3ÁȤËʬ¤±¤ë
°ìÈÖ¾®¤µ¤¤¿ô¤È¤½¤Î¾¤Ç5Ä̤ꡢ»Ä¤Ã¤¿°ìÈÖ¾®¤µ¤¤¿ô¤È¤½¤Î¾¤ÎÁȹ礻¤Ç3Ä̤ꡢ3ÁÈÌܤϻĤê
¤Ê¤Î¤Ç15Ä̤ê
¹ç·×¤Ç¡¢1+15+45+15¡á76Ä̤ê
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 1:05:14¡¡¡¡ ¡¡¡¡51702
»ç¤Îé¬é¯¤Î¿Í
º£²ó¡¢¾®¹ÔÎó¤ò»È¤Ã¤Æ¡¢Á²²½¼°¤òƳ¤¤¤¿¤¬¡¢¾®¹ÔÎó¤ò»È¤¦ÌäÂê¤Ïµ×¤·¤Ö¤ê¡£
²áµî¥í¥°¤ò¸¡º÷¤·¤Æ¤ß¤¿¤é¡¢
¡ô49321¡¦¡¦¡¦¡¦20xx/7/2
¡ô49722¡¦¡¦¡¦¡¦20xx/11/5
¤Ë»ä¤Î½ñ¤­¹þ¤ß¤Ç¾®¹ÔÎ󤬥ҥåȤ·¤Þ¤·¤¿¡£
xx¤¬²¿Ç¯¤«¤òÄ´¤Ù¤ë¤Î¤Ï¡¢¾¯¤·ÌÌÅÝ¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 1:16:25¡¡¡¡ ¡¡¡¡51703
¾Ã¤·¥´¥à¥Ñ¥È¥í¡¼¥ë
²èÁü¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢Ê¸¾Ï¤«¤éÂоμ´¤ÏÂгÑÀþ¤Ë°ã¤¤¤Ê¤¤¤È¤¤¤¦¸«ÀÚ¤ê¤Ç²ò¤­¤Þ¤·¤¿¡£
Âоμ´¾å°Ê³°¤Ë¤¢¤ë¸Ä¿ô¤Ï¶ö¿ô¸Ä¤Ë·è¤Þ¤Ã¤Æ¤¤¤ë¤¿¤á¡¢Âоμ´¾å¤Î¸Ä¿ô¤â¶ö¿ô¡£
i)Âоμ´¾å¤Ë£°¸Ä
¡¡¡¡¢ª¡¡£±ÃÊÌܤϣµÄ̤ê¤Ç¡¢ÀþÂоΤʾì½ê¤âƱ»þ¤Ë·è¤Þ¤ë¤¿¤á¡¢»Ä¤ê¤Ï£´¸Ä¡£
¡¡¡¡¡¡¡¡»Ä¤Ã¤¿£´ÃÊ£´Îó¤ÎºÇ¾åÃʤϣ³Ä̤ê¤Ç¡¢ÀþÂоΤʾì½ê¤âƱ»þ¤Ë·è¤Þ¤ë¤¿¤á¡¢»Ä¤ê¤Ï£²¸Ä¡£
¡¡¡¡¡¡¡¡»Ä¤Ã¤¿£²ÃÊ£²Îó¤Ï£±Ä̤ê¤Ë·è¤Þ¤ë¡£
¡¡¡¡¡¡¡¡£µ¡ß£³¡ß£±¡á15Ä̤ê
ii)Âоμ´¾å¤Ë£²¸Ä
¡¡¡¡¢ªÂоμ´¾å¤Î£²¸Ä¤Ï£¶£Ã£²¡¢Â¾¤Î£´¸Ä¤Ï£³¡ß£±Ä̤ꡡ¢ª¡¡15Ä̤ê
iii)Âоμ´¾å¤Ë£´¸Ä
¡¡¡¡¢ªÂоμ´¾å¤Î£´¸Ä¤Ï£¶£Ã£´¡¢Â¾¤Î£²¸Ä¤Ï£±Ä̤ꡡ¢ª¡¡15Ä̤ê
iv)Âоμ´¾å¤Ë£¶¸Ä¡¡¢ª£±Ä̤ê

°Ê¾å¤ò­¤·¤Æ76Ä̤ê
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 1:32:44¡¡¡¡ ¡¡¡¡51704
¥´¥ó¤È¤â
ÅÀ¤ò
(a1)(a2)(a3)(a4)(a5)(a6)
(b1)(b2)(b3)(b4)(b5)(b6)
(c1)(c2)(c3)(c4)(c5)(c6)
(d1)(d2)(d3)(d4)(d5)(d6)
(e1)(e2)(e3)(e4)(e5)(e6)
(f1)(f2)(f3)(f4)(f5)(f6) ¤È¤·¤Æ
½½¿ÊBasic ¤Ç

for a1=0 to 1
for a2=0 to 1
for a3=0 to 1
for a4=0 to 1
for a5=0 to 1
for a6=0 to 1
if a1+a2+a3+a4+a5+a6<>1 then goto 310
for b1=0 to 1
for b2=0 to 1
for b3=0 to 1
for b4=0 to 1
for b5=0 to 1
for b6=0 to 1
if b1+b2+b3+b4+b5+b6<>1 then goto 250
if a5=1 and b6<>1 then goto 250
for c1=0 to 1
for c2=0 to 1
for c3=0 to 1
for c4=0 to 1
for c5=0 to 1
if b4=1 and c5<>1 then goto 200
for c6=0 to 1
if c1+c2+c3+c4+c5+c6<>1 then goto 190
if a4=1 and c6<>1 then goto 190
for d1=0 to 1
for d2=0 to 1
for d3=0 to 1
for d4=0 to 1
if c3=1 and d4<>1 then goto 150
for d5=0 to 1
if b3=1 and d5<>1 then goto 140
for d6=0 to 1
if d1+d2+d3+d4+d5+d6<>1 then goto 130
if a3=1 and d6<>1 then goto 130
for e1=0 to 1
for e2=0 to 1
for e3=0 to 1
if d2=1 and e3<>1 then goto 100
for e4=0 to 1
if c2=1 and e4<>1 then goto 90
for e5=0 to 1
if b2=1 and e5<>1 then goto 80
for e6=0 to 1
if e1+e2+e3+e4+e5+e6<>1 then goto 70
if a2=1 and e6<>1 then goto 70
for f1=0 to 1
if a1+b1+c1+d1+e1+f1<>1 then goto 60
for f2=0 to 1
if a2+b2+c2+d2+e2+f2<>1 then goto 50
if e1=1 and f2<>1 then goto 50
for f3=0 to 1
if a3+b3+c3+d3+e3+f3<>1 then goto 40
if d1=1 and f3<>1 then goto 40
for f4=0 to 1
if a4+b4+c4+d4+e4+f4<>1 then goto 30
if c1=1 and f4<>1 then goto 30
for f5=0 to 1
if a5+b5+c5+d5+e5+f5<>1 then goto 20
if b1=1 and f5<>1 then goto 20
for f6=0 to 1
if f1+f2+f3+f4+f5+f6<>1 or a6+b6+c6+d6+e6+f6<>1 then goto 10
if a1=1 and f6<>1 then goto 10
let s=s+1
print "No.";s
print a1;a2;a3;a4;a5;a6
print b1;b2;b3;b4;b5;b6
print c1;c2;c3;c4;c5;c6
print d1;d2;d3;d4;d5;d6
print e1;e2;e3;e4;e5;e6
print f1;f2;f3;f4;f5;f6
10 next f6
20 next f5
30 next f4
40 next f3
50 next f2
60 next f1
70 next e6
80 next e5
90 next e4
100 next e3
110 next e2
120 next e1
130 next d6
140 next d5
150 next d4
160 next d3
170 next d2
180 next d1
190 next c6
200 next c5
210 next c4
220 next c3
230 next c2
240 next c1
250 next b6
260 next b5
270 next b4
280 next b3
290 next b2
300 next b1
310 next a6
320 next a5
330 next a4
340 next a3
350 next a2
360 next a1
end

f9²¡¤·¤Æ76Ä̤ê¤òÈÖ¹æ¤ò¿¶¤ê¤Ê¤¬¤é
Á´Éô¤À¤·¤Þ¤¹¤¬Ä¹¤¹¤®¤Æ(532¹Ô)¾Êά!!
Ë­Àî»Ô¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 1:43:25¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡51705
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
£Á£Â¾å¤Ë¡¢£°¸Ä¡¢2¸Ä¡¢4¸Ä¡¢6¸Ä¤Î¾ì¹çʬ¤±¤Ç¿ô¤¨¤Þ¤·¤¿!
Î㤨¤Ð¡¢2¸Ä¤Î»þ¡¢£Á£Â¾å¤Î¤É¤Î2¸Ä¤«¤Ç£¶£Ã£²¡á£±£µÍ­¤Ã¤Æ¡¢
»Ä¤ê¤Î4¸Ä¤Ï£Á£Â¾å¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢2¸Ä¤º¤Ä¼è¤ì¤Æ¡¢1ÁȤ¬·è¤Þ¤ë¤È
»Ä¤ê2¸Ä¤Ï1Ä̤ê¤À¤±¤Ê¤Î¤Ç¡¢¼è¤êÊý¤Ï3Ä̤ê¤Ç¤¹¡£
¤À¤«¤é¡¢£±£µ¡ß£³¡á£´£µÄ̤ê

£±£µ¡Ü£´£µ¡Ü£±£µ¡Ü£±¡á£·£¶
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 2:07:49¡¡¡¡ ¡¡¡¡51706
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
Îã¤Ë¤è¤Ã¤Æ¡¢£Ò£õ£â£ù¥×¥í¥°¥é¥à¤Ç¤¹¡£

p (0..35).to_a.combination(6).count{|x|x.map{|y|y%6}.uniq.count==6&&x.map{|y|[y%6,y/6]}.sort==x.map{|y|[y/6,y%6]}.sort}

Ĺ¡¹¤·¤¯¤Æ¤¹¤ß¤Þ¤»¤ó¡£
36¸Ä¤ÎÅÀ¤ËÈÖ¹æ¤òÉÕ¤±¤Æ¡¢6¸Ä¤ÎÁȤ߹ç¤ï¤»¤ò¹Í¤¨¤Þ¤¹¡£
6¸Ä¤ÎÅÀ¤¬¡¢6¹Ô¤Ëʬ¤«¤ì¤Æ¤¤¤ë¤â¤Î¤Ë¤Ä¤¤¤Æ¡¢¹Ô¤ÈÎó¤òÆþ¤ìÂؤ¨¤Æ¤âÅÀ½¸¹ç¤È¤·¤Æ°ìÃפ¹¤ë¤â¤Î¤ò¿ô¤¨¤Þ¤·¤¿¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 7:43:24¡¡¡¡ ¡¡¡¡51707
·ßòÉ(Keigei)
½Ä²££î¸Ä¤Î¤È¤­¤ÎÅɤêÊý¤ò F(n)Ä̤ê¤È¤·¤Æ¡¢F(6)¤òµá¤á¤Þ¤¹¡£
£±ÎóÌܤòAB¾å¤ËÅɤë¤È¤­¡¢F(5)Ä̤ꡢ
AB¾å¤Ë¤Ê¤¤¤È¤­¡¢AB¤ËÂоΤʽê¤ËÅɤëɬÍפ¬¤¢¤ê¡¢
F(4)Ä̤ê¤Ç¤¹¤Î¤Ç¡¢
F(6)¡áF(5)¡Ü5¡¦F(4) ¤Ë¤Ê¤ê¤Þ¤¹¡£
ƱÍͤˡ¢n¡æ3 ¤Î¤È¤­¡¢F(n)¡áF(n-1)¡Ü(n-1)F(n-2) ¤Ç¤¹¡£
F(1)¡á1 ¡¤F(2)¡á2 ¤À¤«¤é¡¢
F(3)¡áF(2)¡Ü2¡¦F(1)¡á2¡Ü2¡¦2¡á4 ¡¢
F(4)¡áF(3)¡Ü3¡¦F(2)¡á4¡Ü3¡¦2¡á10 ¡¢
F(5)¡áF(4)¡Ü4¡¦F(3)¡á10¡Ü4¡¦4¡á26 ¡¢
F(6)¡áF(5)¡Ü5¡¦F(4)¡á26¡Ü5¡¦10¡á76 ¤Ç¤¹¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 8:01:47¡¡¡¡ ¡¡¡¡51708
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
#51707¡¡ÄûÀµ

x.map{|y|[y/6,y%6]}.sort}¡¡¤ò¡¡x.map{|y|[y/6,y%6]}}¡¡¤Ë

combination¡¡¤Ç¾º½ç¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢¾¦¤Ï¾º½ç¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡£
¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 9:02:34¡¡¡¡ ¡¡¡¡51709
¥ß¥ó¥È¤¯¤ó
Ëͤâ²èÁü¤¬É½¼¨¤µ¤ì¤Ê¤¯¤Æ´Ö°ã¤¤¤Þ¤·¤¿¡£¡ÊºÇ½é¤Ï¡¢½ÄÀþ¤ä²£Àþ¤È»×¤Ã¤Æ¤¤¤¿¤Î¤Ç3²ó¤Û¤É¥ß¥¹¤ê¤Þ¤·¤¿¡£¡Ë
¶ä²Ï·Ï¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 10:00:13¡¡¡¡ ¡¡¡¡51710
¥ß¥ó¥È¤¯¤ó
Ëͤâ¾Ã¤·¥´¥à¥Ñ¥È¥í¡¼¥ë¤µ¤ó¤ä¥Ù¥ë¥¯¡¦¥«¥Ã¥Á¥§¤µ¤ó¡¢¥ä¥³¥Ã¥Á¥ã¤µ¤ó¡¢¡Ö¿ô³Ø¡×¾®Î¹¹Ô¤µ¤ó¡¢Mr.¥À¥ó¥Ç¥£¤µ¤ó¤ÈƱ¤¸ÊýË¡¤Ç¤ä¤ê¤Þ¤·¤¿¡£
¶ä²Ï·Ï¡¡¡¡ 7·î28Æü¡ÊÌÚ¡Ë 10:12:15¡¡¡¡ ¡¡¡¡51711
SECOND
DIM a(7)
DATA 1,2,3,4,5,6,0,0
MAT READ a
CALL perm20(1) !½½¿ÊBASIC¤Ç¡¢1¡Á6 ½çÎó¤ÎŸ³«¡¡P(6,6)

SUB perm20(k)
local i
IF k< 6 THEN
FOR i=k TO 6
swap a(k),a(i)
CALL perm20(k+1)
swap a(k),a(i)
NEXT i
ELSE
FOR j=1 TO 6
IF a(a(j))<>j THEN EXIT SUB ! ÂоΤǤʤ¤¡¢½ü¤¯
NEXT j
LET a(7)=a(7)+1
MAT PRINT USING "! <<<<<<¡¡No_###": a
END IF
END SUB

END

! 123456¡¡No_ 1
! 123465¡¡No_ 2
! ¡Ê
! ¡¡¡Ë
! 653421¡¡No_ 75
! 654321¡¡No_ 76
¡¡¡¡ 7·î29Æü¡Ê¶â¡Ë 2:09:31¡¡¡¡ ¡¡¡¡51712
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
#51712¡¡¡Ö¤½¤¦¤«¡ª¡×¤È´¶Æ°¡£¥¢¥¤¥Ç¥¢¤ò夭¡¢Ruby¤Ë¤¹¤ë¤È¡¢

p (0..5).to_a.permutation.count{|x|x.map{|y|x[x[y]]==y}.count(true)==6}

¤È¤Ç¤­¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¡¡¡¡ 7·î29Æü¡Ê¶â¡Ë 8:09:39¡¡¡¡ ¡¡¡¡51713
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
¤µ¤Ã¤­¤Î
p (0..5).to_a.permutation.count{|x|x.map{|y|x[x[y]]==y}.count(true)==6}

¤è¤ê¡¢2ʸ»ú¾¯¤Ê¤¯¤Ç¤­¤Þ¤·¤¿¡£

p (0..5).to_a.permutation.count{|x|x.count{|y|(x[x[y]]==y)==true}==6}

¤¿¤¤¤·¤¿¤³¤È¤Ç¤Ï¤Ê¤¤¤Î¤Ë¡¢¼ºÎ餷¤Þ¤·¤¿¡£
¡¡¡¡ 7·î29Æü¡Ê¶â¡Ë 8:24:17¡¡¡¡ ¡¡¡¡51714
¦µDA
15¡ß5+1
¡¡¡¡ 8·î1Æü¡Ê·î¡Ë 18:16:43¡¡¡¡ ¡¡¡¡51715