Back to blog
js puzzlesalgebra

Subtiles 2

·4 min read

Subtiles 2

This month's puzzle is straightforward in comparison to January's puzzle. The first thing to find was the upper bound of the KK-ominos. Given our constraints and a 13×1313\times 13 board, the max KK-omino bound was 1717.

  • max K=17K=17: 17(17+1)2=153169\frac{17\cdot (17+1)}{2} = 153\leq 169

This is only an upper bound value. Therefore, each equation must yield an answer between 11 to 1717. When looking through the equations, there were obvious constraints for each constant.

b2b^2 and (b1)2(b-1)^2

b2{1,...,17}b^2\in \{1,...,17\} and (b1)2{1,...,17}(b-1)^2\in \{1,...,17\}. Given that b2=nb^2=n and (b1)2=m(b-1)^2=m, then

  • b2(b1)2=2b1=mnb^2-(b-1)^2=2b-1=m-n
  • b=mn+12=±mb=\frac{m-n+1}{2}=\pm m
  • This forces mm to be a perfect square, then bb is an integer
  • b216b^2\leq 16 then b{4,3,2,1,1,2,3,4}b \in \{-4,-3,-2,-1,1,2,3,4\}
  • (b1)21(b-1)^2 \geq 1 so b1b\neq 1
  • (b1)216b14(b-1)^2 \leq 16 \rightarrow |b-1|\leq 4 so b{3,...5}b\in \{-3,...5\}
  • Thus b{3,2,1,2,3,4}b\in \{-3,-2,-1,2,3,4\}

a+2a\frac{\sqrt{a+2}}{a}

Given that a+2aZ\frac{\sqrt{a+2}}{a}\in \mathbb{Z} and a+2a{1,2,...,17}\frac{\sqrt{a+2}}{a} \in \{1,2,...,17\}.

  • a+2=aka+2=a2k2\sqrt{a+2} = ak \rightarrow a+2 =a^2k^2
  • a2k2a2=0a^2k^2-a-2=0
  • a=1±1+8k22k2a = \frac{1\pm \sqrt{1+8k^2}}{2k^2}
  • 1+8k21+8k^2 must be a perfect square for aa to be rational
  • Checking values 11 to 1717, the only kk that work are k=1,6k=1,6 where a=2a=2 and 14\frac{1}{4}, respectively
  • This narrows the search space a lot

Eliminating a=2a = 2

  • We need c>ac > a for ca\sqrt{c-a} to be real and nonzero (expression 11)
  • We also need logc(a)\log_c(a) to be a positive integer nn, which means a=cna = c^n
  • If a=2a = 2, then cn=2c^n = 2 with c>2c > 2
  • But c>2c > 2 and n1n \geq 1 gives cn>2c^n > 2, so cn=2c^n = 2 is impossible
  • Therefore a=2a = 2 is ruled out, leaving:

a=14a = \frac{1}{4}

Narrowing bb with a=14a = \frac{1}{4}

  • The expression 4a5b4a - 5b must be a positive integer
  • Substituting a=14a = \frac{1}{4}: 4145b=15b4\cdot\frac{1}{4} - 5b = 1 - 5b
  • For this to land in {1,...,17}\{1,...,17\} we need b0b \leq 0
  • This eliminates b{2,3,4}b \in \{2, 3, 4\}, leaving:

b{3,2,1}b \in \{-3, -2, -1\}

Pinning cc from c+2ac + 2a

  • The expression c+2a=c+12c + 2a = c + \frac{1}{2} must be a positive integer mm, so:
    • c=m12c = m - \frac{1}{2} for m{1,2,...,17}m \in \{1, 2, ..., 17\}
  • The constraint c>a=14c > a = \frac{1}{4} requires m1m \geq 1
  • c1c \neq 1 requires m32m \neq \frac{3}{2} (always satisfied since mm is an integer)
  • So c{12,32,52,...}c \in \{\frac{1}{2}, \frac{3}{2}, \frac{5}{2}, ...\}

Eliminating b=1b = -1

  • cb=c1=1cc^b = c^{-1} = \frac{1}{c} must be a positive integer, so c=1jc = \frac{1}{j} for some positive integer jj
  • From above, c=m12c = m - \frac{1}{2}, meaning 1j=m12\frac{1}{j} = m - \frac{1}{2}
  • The only solution with mm a positive integer and jj a positive integer is m=1,j=2m = 1, j = 2, giving c=12c = \frac{1}{2}
  • (b+c)/(c1)=(1+12)/(121)=(12)/(12)=1(b+c)/(c-1) = (-1 + \frac{1}{2})/(\frac{1}{2} - 1) = (-\frac{1}{2})/(-\frac{1}{2}) = 1
  • b2b/c=1(1)/(12)=1+2=3b^2 - b/c = 1 - (-1)/(\frac{1}{2}) = 1 + 2 = 3
  • (b+9)/ca=8/14=8/12=16(b+9)/\sqrt{c-a} = 8/\sqrt{\frac{1}{4}} = 8/\frac{1}{2} = 16
  • (ab4)/(6c+1)=(44)/4=0(a^b - 4)/(6c+1) = (4 - 4)/4 = 0
  • The expression (ab4)/(6c+1)=0(a^b-4)/(6c+1) = 0 is not a positive integer, so b=1b = -1 fails

Eliminating b=2b = -2

  • cb=c2=1c2c^b = c^{-2} = \frac{1}{c^2} must be a positive integer, so c2=1jc^2 = \frac{1}{j} giving c=1jc = \frac{1}{\sqrt{j}}
  • Combined with c=m12c = m - \frac{1}{2}: m12=1jm - \frac{1}{2} = \frac{1}{\sqrt{j}}
  • For m=1m = 1: 1j=12\frac{1}{\sqrt{j}} = \frac{1}{2}, so j=4j = 4, giving c=12c = \frac{1}{2}
  • (ab4)/(6c+1)=((14)24)/(3+1)=(164)/4=3(a^b - 4)/(6c+1) = (({\frac{1}{4}})^{-2} - 4)/(3+1) = (16-4)/4 = 3
  • (b3+2c)/(b+2c)=(8+1)/(2+1)=7/1=7(b^3 + 2c)/(b+2c) = (-8 + 1)/(-2 + 1) = -7/-1 = 7
  • 6c4b=3+8=116c - 4b = 3 + 8 = 11
  • logc(a)=log1/2(1/4)=2\log_c(a) = \log_{1/2}(1/4) = 2
  • b/(a1)=2/(1/41)=2/(3/4)=8/3b/(a-1) = -2/(1/4 - 1) = -2/(-3/4) = 8/3
  • The expression b/(a1)=83Zb/(a-1) = \frac{8}{3} \notin \mathbb{Z}, so b=2b = -2 fails

b=3b = -3 and c=12c = \frac{1}{2}

  • With b=3b = -3 and a=14a = \frac{1}{4}, cb=c3c^b = c^{-3} must be a positive integer, so c=j1/3c = j^{-1/3} for positive integer jj
  • Combined with c=m12c = m - \frac{1}{2}, trying m=1m = 1 gives c=12c = \frac{1}{2} and c3=8c^{-3} = 8
  • Checking b/(a1)=3/(1/41)=3/(3/4)=4b/(a-1) = -3/(1/4 - 1) = -3/(-3/4) = 4
  • All 37 expressions now evaluate to positive integers:

a=14,b=3,c=12\boxed{a = \tfrac{1}{4}, \quad b = -3, \quad c = \tfrac{1}{2}}

K-omino Distribution#

Given that 1212 was the most constrained kk-omino. There were only around 5 configurations that made sense. Building from the 1212 kk-omino, I programmatically found the grid. I was able to solve this months puzzle to get the answer 9072.

subtiles-ans.png
subtiles-ans.png