¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§ |
7-5
-3-2 5-5-5 -3-2-2 3-3-3-3 -2-2-2 2-2-2-2-2-2 ¼ù·Á¿Þ¤Ç¿ô¤¨¤Æ7Ä̤ê¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 0:04:40¡¡¡¡
¡¡¡¡53929 |
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§ |
»°ÈÖÌÜÂǤÁ¥ß¥¹¤Ç¤¹¡£
5-5-2 |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 0:05:47¡¡¡¡
¡¡¡¡53930 |
º£Ç¯¤«¤é¹âÎð¼Ô |
2,3,5,7¤Ç12¤òºî¤ëÁȤ߹ç¤ï¤»¤ò½ñ¤½Ð¤·¤Þ¤·¤¿ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 0:06:31¡¡¡¡
¡¡¡¡53931 |
º£Ç¯¤«¤é¹âÎð¼Ô |
2,3,5,7¤Ç12¤òºî¤ëÁȤ߹ç¤ï¤»¤ò½ñ¤½Ð¤·¤Þ¤·¤¿ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 0:06:45¡¡¡¡
¡¡¡¡53932 |
¥´¥ó¤È¤â |
½½¿ÊBasic ¤Ç
for a=0 to 6 for b=0 to 6 for c=0 to 6 for d=0 to 6 IF 2*a+3*b+5*c+7*d=12 THEN LET s=s+1 next d next c next b next a PRINT s END f9²¡¤·¤Æ 7¡¦¡¦¡¦¡¦¡¦¡¦(Åú¤¨) ¤³¤Î¥×¥í¥°¥é¥à¤Ï12¸ÂÄê¤À¤Ã¤¿¤ó¤Ç¤¹¤¬Â¾¤Î¤â¤Î¤â¤Ç¤ë¤â¤Î¤òº£¤«¤é ¹Í¤¨¤¿¤¤¤ó¤Ç¤¹¤¬Ì²¤¯¤Æ¡¦¡¦¡¦ |
ËÀî»Ô¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 0:31:24¡¡¡¡
¡¡¡¡53933 |
¥´¥ó¤È¤â |
#53933
>¤³¤Î¥×¥í¥°¥é¥à¤Ï12¸ÂÄê¤À¤Ã¤¿¤ó¤Ç¤¹¤¬Â¾¤Î¤â¤Î¤â¤Ç¤ë¤â¤Î¤òº£¤«¤é >¹Í¤¨¤¿¤¤¤ó¤Ç¤¹¤¬Ì²¤¯¤Æ¡¦¡¦¡¦ °Ê²¼¤Î29¤Þ¤Ç¤Î¤â¤Î¤Ï²¡¤·¤Æ¤¹¤°¤Ê¤ó¤Ç¤¹¤¬ 100¤°¤é¤¤¤Ï¤É¤Î¤¯¤é¤¤¤«¤«¤ë¤«¤Ï? ¤ä¤Ã¤Æ¤ß¤ì¤Ð¤ï¤«¤ë¤ó¤Ç¤¹¤¬¡¦¡¦¡¦ input n print time$ for a=0 to n/2 for b=0 to n/3 for c=0 to n/5 for d=0 to n/7 for e=0 to n/11 for f=0 to n/13 for g=0 to n/17 for h=0 to n/19 for i=0 to n/23 for j=0 to n/29 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j=n THEN LET s=s+1 next j next i next h next g next f next e next d next c next b next a PRINT s PRINT TIME$ END |
ËÀî»Ô¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 1:11:11¡¡¡¡
¡¡¡¡53934 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
2¡¢3¡¢5¡¢7¤ò»È¤Ã¤Æ¡¢Ï¤¬12¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤·¤¿¡£ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 3:52:40¡¡¡¡
¡¡¡¡53935 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
p (2..6).map{|x|[2,3,5,7].repeated_combination(x).map{|y|y.sum}}.flatten.count(12) |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 5:09:20¡¡¡¡
¡¡¡¡53936 |
¤È¤Þ¤Ô¤ç¤ó |
chatGPT o3 ¤Ëʹ¤¤¤¿¤é¡¢Àµ²ò½Ð¤·¤Æ¤¯¤ì¤Þ¤·¤¿¡£ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 6:09:28¡¡¡¡
¡¡¡¡53938 |
¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
µ×¤·¤Ö¤ê¤Îʸ¾ÏÌäÂê¤Ê¤Î¤ÇchatGPT¤Ë¥×¥í¥°¥é¥à¤òºîÀ®¤·¤ÆÌ㤤¤Þ¤·¤¿¡£¥×¥í¥°¥é¥à¤Ï¡¢
from sympy import factorint def factor_sum(n): ¡¡¡¡factors=factorint(n) ¡¡¡¡return sum([prime*exp for prime,exp in factors.items()]) def find_numbers_with_sum(target_sum,limit=10000): ¡¡¡¡result=[] ¡¡¡¡for i in range(2,limit): ¡¡¡¡¡¡¡¡if factor_sum(i)==target_sum: ¡¡¡¡¡¡¡¡¡¡¡¡result.append(i) ¡¡¡¡return result target=12 matching_numbers=find_numbers_with_sum(target) print(f"½ÐÎϤ¬{target}¤Ë¤Ê¤ë¤è¤¦¤Ê¿ô¤Ï¡¡{len(matching_numbers)}¡¡Ä̤ꤢ¤ê¤Þ¤¹¡£") print("¤½¤Î¿ô¤¿¤Á:",maching_numbers) ÁêÊѤï¤é¤ºÀ¨¤¤¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Þ¤¹¤Í¡£ |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 16:05:45¡¡¡¡
¡¡¡¡53939 |
¤¤¤Á¤´¤ß¤ë¤¯ |
https://oeis.org/A000607
·Á¼°ÅªÑѵé¿ô¤Ç¹Í¤¨¤ë¤È f(n)=¦°1/(1-x^P_{i}) ¢¨P_{i}¤ÏiÈÖÌܤÎÁÇ¿ô |
¡¡¡¡
4·î24Æü¡ÊÌÚ¡Ë 19:31:38¡¡¡¡
¡¡¡¡53940 |
¥´¥ó¤È¤â |
#53934
>100¤°¤é¤¤¤Ï¤É¤Î¤¯¤é¤¤¤«¤«¤ë¤«¤Ï? >¤ä¤Ã¤Æ¤ß¤ì¤Ð¤ï¤«¤ë¤ó¤Ç¤¹¤¬¡¦¡¦¡¦ ¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¡£100¤Þ¤Ç¤Ê¤é30ÉÃÄøÅ٤ǡ¦¡¦¡¦ input n print time$ for a=0 to n/2 IF 2*a>n then goto 250 for b=0 to n/3 IF 2*a+3*b>n then goto 240 for c=0 to n/5 IF 2*a+3*b+5*c>n then goto 230 for d=0 to n/7 IF 2*a+3*b+5*c+7*d>n then goto 220 for e=0 to n/11 IF 2*a+3*b+5*c+7*d+11*e>n then goto 210 for f=0 to n/13 IF 2*a+3*b+5*c+7*d+11*e+13*f>n then goto 200 for g=0 to n/17 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g>n then goto 190 for h=0 to n/19 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h>n then goto 180 for i=0 to n/23 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i>n then goto 170 for j=0 to n/29 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j>n then goto 160 for k=0 to n/31 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k>n then goto 150 for l=0 to n/37 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l>n then goto 140 for m=0 to n/41 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m>n then goto 130 FOR n1=0 TO n/43 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1>n then goto 120 for o=0 to n/47 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o>n then goto 110 for p=0 to n/53 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p>n then goto 100 for q=0 to n/59 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q>n then goto 90 for r=0 to n/61 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r>n then goto 80 FOR t=0 TO n/67 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t>n then goto 70 FOR u=0 TO n/71 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u>n then goto 60 FOR v=0 TO n/73 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u+73*v>n then goto 50 FOR w=0 TO n/79 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u+73*v+79*w>n then goto 40 FOR x=0 TO n/83 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u+73*v+79*w+83*x>n then goto 30 FOR y=0 TO n/89 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u+73*v+79*w+83*x+89*y>n then goto 20 FOR z=0 TO n/97 IF 2*a+3*b+5*c+7*d+11*e+13*f+17*g+19*h+23*i+29*j+31*k+37*l+41*m+43*n1+47*o+53*p+59*q+61*r+67*t+71*u+73*v+79*w+83*x+89*y+97*z=n THEN LET s=s+1 10 next z 20 NEXT y 30 NEXT x 40 NEXT w 50 NEXT v 60 NEXT u 70 NEXT t 80 next r 90 next q 100 next p 110 NEXT o 120 NEXT n1 130 next m 140 next l 150 next k 160 next j 170 next i 180 next h 190 next g 200 next f 210 next e 220 next d 230 next c 240 next b 250 next a PRINT s PRINT TIME$ END ¤¿¤á¤·¤Ë¡¡87¤Ç ? 87 14:06:17 16681 14:06:27¡¡ 10Éäǡ¦¡¦¡¦ ¤µ¤é¤Ë¿ôÃͤò¾å¤²¤Æ¤³¤Î¥×¥í¥°¥é¥à¤Î¸Â³¦¤Ç¡¡100 ¤Ç ? 100 14:07:58 40899 14:08:29 31Éäǡ¦¡¦¡¦ ¤Ç1000¤À¤È¤É¤¦¤Ê¤ë¤«¤Ï? ¤Ç¤¹¤¬¤³¤ì¤Ï¤ä¤á¤È¤¤Þ¤¹!!(¢èÈè¤ì¤ë¤«¤é) |
ËÀî»Ô¡¡¡¡
4·î25Æü¡Ê¶â¡Ë 14:14:14¡¡¡¡
¡¡¡¡53941 |
¤¤¤Á¤´¤ß¤ë¤¯ |
f(x) = ¦°1/(1-x^p)
logf(x) = -¦²log(1-x^p) f(x) = exp(-¦²log(1-x^p)) log(1-x^p)=-¦²x^(ip)/i ¤è¤ê mod998244353¾å¤Ê¤éO(nlogn)¤Çµá¤Þ¤ê¤Þ¤¹¡£ |
¡¡¡¡
4·î25Æü¡Ê¶â¡Ë 20:26:06¡¡¡¡
¡¡¡¡53942 |