¥´¥ó¤È¤â
½½¿ÊBasic ¤Ç

for a=1 to 3
for b=1 to 3
if b=a then goto 30
for c=1 to 3
if c=a then goto 20
for d=1 to 3
if d=b or d=c then goto 10
let s=s+1
10 next d
20 next c
30 next b
40 next a
print s
end

f9²¡¤·¤Æ¡¡18¡¦¡¦¡¦¡¦¡¦¡¦(Åú¤¨)
Ë­Àî»Ô¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:13:00¡¡¡¡ ¡¡¡¡53668
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
ʸ»ú2¼ïÎà¤Î¤È¤­3¡ß2¡á6
ʸ»ú3¼ïÎà¤Î¤È¤­¡¢¤É¤³¤òƱ¤¸Ê¸»ú¤Ë¤¹¤ë¤«¤Ç2Ä̤ꤢ¤ë¤Î¤Ç¡¢2¡ß3¡ß2¡ß1¡á12
6+12¤Çʸ»ú¤ÎÃÖ¤­Êý¤Ï18Ä̤ꡣ
µ­Æþ¤¹¤ë½à¤â¹Í¤¨¤ë¤È18¡ß4¡ß3¡ß2¡ß1¡á432¤Ç432Ä̤ꡣ
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:15:28¡¡¡¡ ¡¡¡¡53669
Mr.¥À¥ó¥Ç¥£
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§¤µ¤ó¤Î #53669 ¤ÈƱÍͤˤ·¤Þ¤·¤¿¡£¡Êµ­Æþ¤¹¤ë½ç¤Þ¤Ç¤Ï¹Í¤¨¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡Ë
°ñÌÚ»Ô¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:22:48¡¡¡¡ ¡¡¡¡53670
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
½à¢ª½ç
18Ä̤ê¤ÇÁ÷¤Ã¤¿»þÅÀ¤ÇÀµ²ò¼Ô°ìÍ÷¤¬½Ð¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢432Ä̤ê¤Ç¤âÁ÷¤ê¤Þ¤·¤¿¡£
ÌäÂêʸ¤Ë¤Ï¡Öµ­Æþ¤·¤Æ¤¤¤¯¡×¤È¤¢¤ë¤Î¤Ç¡¢18Ä̤ê¤è¤ê432Ä̤ê¤Î¤Û¤¦¤¬¤¤¤¤¤è¤¦¤Êµ¤¤¬¡£
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:29:32¡¡¡¡ ¡¡¡¡53671
¾Ã¤·¥´¥à¥Ñ¥È¥í¡¼¥ë
¶öÁ³¤Ë¤âº£Æü¤Î¼ø¶È¤ÇÆÃÊÌÌäÂê¤È¤·¤ÆÀ¸Å̤˽Ф·¤¿ÌäÂê¤Ç¤·¤¿¡£
£´¿§¤ÎÅɤê¤Ç½Ð¤·¤¿¤Î¤Ç¡¢¿ôÃͤϰ㤤¤Þ¤¹¤¬¡£
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:41:32¡¡¡¡ ¡¡¡¡53672
¥¹¥â¡¼¥¯¥Þ¥ó
¹ç¤Ã¤Æ¤¿¤Î¤Í ^^

3^4¤«¤é¡¢¾ò·ï¤Ë¹ç¤ï¤Ê¤¤¤â¤Î¤ò°ú¤­¤Þ¤·¤¿...
Ʊ¤¸Ê¸»ú4¤Ä...1Ä̤ꡦ¡¦¡¦3
Ʊ¤¸Ê¸»ú3¤Ä...4¡¦¡¦¡¦4*3*2
Ʊ¤¸Ê¸»ú2¤Ä¤Ç»Ä¤ê¤Ð¤é¡¦¡¦¡¦4*3*2
Ʊ¤¸Ê¸»ú2¤Ä¤º¤Ä¡¦¡¦¡¦2*3*2

so...
3^4-(3+24+24+12)
=81-63
=18

4¿§¤À¤Ã¤¿¤é...

4^4-(4+4*4*3*2+4*4*3*2+2*4*3)
=36Ä̤ê

¤Ë¤Ê¤ë¤Î¤«¤Ê¡©
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 0:58:12¡¡¡¡ ¡¡¡¡53673
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
ǧ¾Ú¤¬Á°²ó¤ÎÅú¤Î¤Þ¤Þ¤Ç¤¹¤Í¡£
²ò¤­Êý¤Ï¡¢¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§¤µ¤ó¤ÈƱ¤¸¤Ç¤¹¡£
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 8:23:17¡¡¡¡ ¡¡¡¡53674
¤ß¤«¤ó
¤è¤¯¤¢¤ëÅɤêʬ¤±ÌäÂê¤È¤·¤Æ¹Í¤¨¤Þ¤·¤¿¤¬¡¢µ­Æþ½ç½ø¤â¹Í¤¨¤ë¤Ù¤­¤À¤Ã¤¿¤Î¤«¡©¡¡

²òË¡¤È¤·¤Æ¤Ï
¡¦Æ±¤¸Ê¸»ú¤¬£²ÁȤξì¹ç¡¡¤È¡¡£±ÁȤξì¹ç¡¡¤Ç¤ï¤±¤Æ·×»»¤¹¤ë
¡¦¼ù·Á¿Þ¤ò½ñ¤¯
¤Î¤É¤Á¤é¤«¤Ç¤¹¤Í¡£½Î¤Ç¤Ï£´Ç¯À¸¤Î¶µºà¤Ëɬ¤ººÜ¤ë¤è¤¦¤Ê¤ª¼ê·ÚÌäÂê¤Ç¤·¤¿¡£
¡¡¡¡ 10·î24Æü¡ÊÌÚ¡Ë 9:49:44¡¡¡¡ ¡¡¡¡53675
¥¹¥â¡¼¥¯¥Þ¥ó
#53673
¡Ö»Í¿§ÌäÂê¡×...
4¿§¤À¤Ã¤¿¤é...
4^4-(4+4*4*3+4*4*3+2*4*3)
=132 Ä̤ê

¤Ç¤·¤¿¤«...^^;
¡¡¡¡ 10·î25Æü¡Ê¶â¡Ë 7:32:08¡¡¡¡ ¡¡¡¡53676
¤Þ¤ë¥±¥ó
4¿§¤Ê¤é£¸£´¤Ç¤·¤ç¡ª¡©

£²¿§¤ÇÅɤë¾ì¹ç¡¢£´£Ð£²¡á£±£²Ä̤ê

£³¿§¤ÇÅɤë¾ì¹ç¡¢ÂгѤ理¬£´Ä̤ê¤Ç¡¢¤É¤Á¤é¤ÎÂгѤòƱ¤¸¿§¤Ë¤¹¤ë¤«¤¬£²Ä̤ꡢ
»Ä¤ê¤Î£²¿§¤òÁª¤Ö¤È¡¢£´¡ß£²¡ß£³¡ß£²¡á£´£¸Ä̤ê

£´¿§¤ÇÅɤë¾ì¹ç¤Ï¡¢£´£Ã£´¡á£²£´Ä̤ê

Á´Éô­¤·¤Æ¡¢£¸£´Ä̤ꡣ

#53668 ¥´¥ó¤È¤â¤µ¤ó¤Î½½¿ÊBasic¡¢for ʸ¤ÎºÇ¸å¤Î 3 ¤ò 4 ¤Ë¤¹¤ì¤Ð¡¢¤ä¤Ï¤ê£¸£´¤È½Ð¤ë¤È»×¤¤¤Þ¤¹¡£

¼«Á°¤Î Ruby¥¹¥¯¥ê¥×¥È¤Ç¡¢¥Þ¥¹Ìܤò£×¡ß£È¡¢»È¤¦¿§¤Î¿ô¤ò£Î¤È¤·¤Æ¡¢
¤¤¤í¤¤¤í¤Ê¥Ñ¥¿¡¼¥ó¤ò»î¤·¤Þ¤·¤¿¡£
£× £È £Î ans
[2, 2, 3] : 18
[2, 2, 4] : 84
[2, 3, 3] : 54
[3, 3, 3] : 246
[3, 3, 4] : 9612

¤ä¤Ï¤ê¡¢£²¡¢£²¡¢£³ ¤À¤È£±£¸¡££²¡¢£²¡¤£´¤À¤È£¸£´ ¤È½Ð¤Þ¤·¤¿¡£
¤ª¤¦¤Á¡¡¡¡ 10·î26Æü¡ÊÅÚ¡Ë 10:12:42¡¡¡¡ ¡¡¡¡53677
¤Þ¤ë¥±¥ó

https://oeis.org/A091940
¤ª¤¦¤Á¡¡¡¡ 10·î26Æü¡ÊÅÚ¡Ë 10:27:11¡¡¡¡ ¡¡¡¡53678