H3=LET(a,WRAPROWS(REGEXP(TEXTBEFORE(G3,"=",,,1),"[一-龟]+|\d+"),2),b,TEXTJOIN("+",,MAP(LEFT(REGEXP(F3,"[一-龟]+"),2),LAMBDA(n,n&SUM((TAKE(a,,1)=n)*TAKE(a,,-1))))),SUM(--REGEXP(b,"\d+"))&CHAR(10)&"("&b&")")
I3=LET(a,WRAPROWS(REGEXP(TEXTBEFORE(G3,"=",,,1),"[一-龟]+|\d+"),2),b,TEXTJOIN("+",1,IF(MAP(TAKE(a,,1),LAMBDA(n,IF(SUM(N(LEFT(REGEXP(F3,"[一-龟]+"),2)=n))=0,1))),BYROW(a,CONCAT),"")),IFNA(SUM(--REGEXP(b,"\d+"))&CHAR(10)&"("&b&")",""))
J3=SUM(--IFNA(TEXTBEFORE(H3:I3,CHAR(10)),))
K3=LET(a,LEFT(REGEXP(F3,"[一-龟]+"),2),b,WRAPROWS(REGEXP(TEXTBEFORE(G3,"=",,,1),"[一-龟]+|\d+"),2),TOROW(TRANSPOSE(VSTACK(a,MAP(a,LAMBDA(n,SUM((TAKE(b,,1)=n)*TAKE(b,,-1)))),RIGHT(REGEXP(F3,"[一-龟]+"),LEN(REGEXP(F3,"[一-龟]+"))-2))))) |