<?php
$max=100;
for($i=1;$i<$max;$i++){
for($j=1;$j<$max;$j++){
for($k=$j;$k<$max;$k++){
$s=isPerfectSquare($i*$i+$j);
$t=isPerfectSquare($i*$i-$k);
if($s>0 && $t>0 && $j<>$k){
// $$sqrt{a^2+5}+sqrt{a^2+12}=7$$
echo '$$sqrt{a^2+'.$j.'}+sqrt{a^2-'.$k.'}='.($s+$t).' ---答案(a=',$i,')$$','<p></p>';
}
}
$$sqrt{a^2+7}+sqrt{a^2-8}=5 ---答案(a=3)$$
$$sqrt{a^2+9}+sqrt{a^2-12}=7 ---答案(a=4)$$
$$sqrt{a^2+9}+sqrt{a^2-15}=6 ---答案(a=4)$$
$$sqrt{a^2+11}+sqrt{a^2-16}=9 ---答案(a=5)$$
$$sqrt{a^2+11}+sqrt{a^2-21}=8 ---答案(a=5)$$
$$sqrt{a^2+11}+sqrt{a^2-24}=7 ---答案(a=5)$$
$$sqrt{a^2+13}+sqrt{a^2-20}=11 ---答案(a=6)$$
$$sqrt{a^2+13}+sqrt{a^2-27}=10 ---答案(a=6)$$
$$sqrt{a^2+13}+sqrt{a^2-32}=9 ---答案(a=6)$$
$$sqrt{a^2+13}+sqrt{a^2-35}=8 ---答案(a=6)$$
$$sqrt{a^2+28}+sqrt{a^2-32}=10 ---答案(a=6)$$
$$sqrt{a^2+28}+sqrt{a^2-35}=9 ---答案(a=6)$$
$$sqrt{a^2+15}+sqrt{a^2-24}=13 ---答案(a=7)$$
$$sqrt{a^2+15}+sqrt{a^2-33}=12 ---答案(a=7)$$
$$sqrt{a^2+15}+sqrt{a^2-40}=11 ---答案(a=7)$$
$$sqrt{a^2+15}+sqrt{a^2-45}=10 ---答案(a=7)$$
$$sqrt{a^2+15}+sqrt{a^2-48}=9 ---答案(a=7)$$
$$sqrt{a^2+32}+sqrt{a^2-33}=13 ---答案(a=7)$$
$$sqrt{a^2+32}+sqrt{a^2-40}=12 ---答案(a=7)$$
$$sqrt{a^2+32}+sqrt{a^2-45}=11 ---答案(a=7)$$
$$sqrt{a^2+32}+sqrt{a^2-48}=10 ---答案(a=7)$$
$$sqrt{a^2+17}+sqrt{a^2-28}=15 ---答案(a=8)$$
$$sqrt{a^2+17}+sqrt{a^2-39}=14 ---答案(a=8)$$
$$sqrt{a^2+17}+sqrt{a^2-48}=13 ---答案(a=8)$$
$$sqrt{a^2+17}+sqrt{a^2-55}=12 ---答案(a=8)$$
$$sqrt{a^2+17}+sqrt{a^2-60}=11 ---答案(a=8)$$
$$sqrt{a^2+17}+sqrt{a^2-63}=10 ---答案(a=8)$$
$$sqrt{a^2+36}+sqrt{a^2-39}=15 ---答案(a=8)$$
$$sqrt{a^2+36}+sqrt{a^2-48}=14 ---答案(a=8)$$
$$sqrt{a^2+36}+sqrt{a^2-55}=13 ---答案(a=8)$$
$$sqrt{a^2+36}+sqrt{a^2-60}=12 ---答案(a=8)$$
$$sqrt{a^2+36}+sqrt{a^2-63}=11 ---答案(a=8)$$
$$sqrt{a^2+57}+sqrt{a^2-60}=13 ---答案(a=8)$$
$$sqrt{a^2+57}+sqrt{a^2-63}=12 ---答案(a=8)$$
$$sqrt{a^2+19}+sqrt{a^2-32}=17 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-45}=16 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-56}=15 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-65}=14 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-72}=13 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-77}=12 ---答案(a=9)$$
$$sqrt{a^2+19}+sqrt{a^2-80}=11 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-45}=17 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-56}=16 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-65}=15 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-72}=14 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-77}=13 ---答案(a=9)$$
$$sqrt{a^2+40}+sqrt{a^2-80}=12 ---答案(a=9)$$
$$sqrt{a^2+63}+sqrt{a^2-65}=16 ---答案(a=9)$$
$$sqrt{a^2+63}+sqrt{a^2-72}=15 ---答案(a=9)$$
$$sqrt{a^2+63}+sqrt{a^2-77}=14 ---答案(a=9)$$
$$sqrt{a^2+63}+sqrt{a^2-80}=13 ---答案(a=9)$$
$$sqrt{a^2+21}+sqrt{a^2-36}=19 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-51}=18 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-64}=17 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-75}=16 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-84}=15 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-91}=14 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-96}=13 ---答案(a=10)$$
$$sqrt{a^2+21}+sqrt{a^2-99}=12 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-51}=19 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-64}=18 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-75}=17 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-84}=16 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-91}=15 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-96}=14 ---答案(a=10)$$
$$sqrt{a^2+44}+sqrt{a^2-99}=13 ---答案(a=10)$$
$$sqrt{a^2+69}+sqrt{a^2-75}=18 ---答案(a=10)$$
$$sqrt{a^2+69}+sqrt{a^2-84}=17 ---答案(a=10)$$
$$sqrt{a^2+69}+sqrt{a^2-91}=16 ---答案(a=10)$$
$$sqrt{a^2+69}+sqrt{a^2-96}=15 ---答案(a=10)$$
$$sqrt{a^2+69}+sqrt{a^2-99}=14 ---答案(a=10)$$
$$sqrt{a^2+96}+sqrt{a^2-99}=15 ---答案(a=10)$$
$$sqrt{a^2+23}+sqrt{a^2-40}=21 ---答案(a=11)$$
$$sqrt{a^2+23}+sqrt{a^2-57}=20 ---答案(a=11)$$
$$sqrt{a^2+23}+sqrt{a^2-72}=19 ---答案(a=11)$$
$$sqrt{a^2+23}+sqrt{a^2-85}=18 ---答案(a=11)$$
$$sqrt{a^2+23}+sqrt{a^2-96}=17 ---答案(a=11)$$
$$sqrt{a^2+48}+sqrt{a^2-57}=21 ---答案(a=11)$$
$$sqrt{a^2+48}+sqrt{a^2-72}=20 ---答案(a=11)$$
$$sqrt{a^2+48}+sqrt{a^2-85}=19 ---答案(a=11)$$
$$sqrt{a^2+48}+sqrt{a^2-96}=18 ---答案(a=11)$$
$$sqrt{a^2+75}+sqrt{a^2-85}=20 ---答案(a=11)$$
$$sqrt{a^2+75}+sqrt{a^2-96}=19 ---答案(a=11)$$
$$sqrt{a^2+25}+sqrt{a^2-44}=23 ---答案(a=12)$$
$$sqrt{a^2+25}+sqrt{a^2-63}=22 ---答案(a=12)$$
$$sqrt{a^2+25}+sqrt{a^2-80}=21 ---答案(a=12)$$
$$sqrt{a^2+25}+sqrt{a^2-95}=20 ---答案(a=12)$$
$$sqrt{a^2+52}+sqrt{a^2-63}=23 ---答案(a=12)$$
$$sqrt{a^2+52}+sqrt{a^2-80}=22 ---答案(a=12)$$
$$sqrt{a^2+52}+sqrt{a^2-95}=21 ---答案(a=12)$$
$$sqrt{a^2+81}+sqrt{a^2-95}=22 ---答案(a=12)$$
$$sqrt{a^2+27}+sqrt{a^2-48}=25 ---答案(a=13)$$
$$sqrt{a^2+27}+sqrt{a^2-69}=24 ---答案(a=13)$$
$$sqrt{a^2+27}+sqrt{a^2-88}=23 ---答案(a=13)$$
$$sqrt{a^2+56}+sqrt{a^2-69}=25 ---答案(a=13)$$
$$sqrt{a^2+56}+sqrt{a^2-88}=24 ---答案(a=13)$$
$$sqrt{a^2+87}+sqrt{a^2-88}=25 ---答案(a=13)$$
$$sqrt{a^2+29}+sqrt{a^2-52}=27 ---答案(a=14)$$
$$sqrt{a^2+29}+sqrt{a^2-75}=26 ---答案(a=14)$$
$$sqrt{a^2+29}+sqrt{a^2-96}=25 ---答案(a=14)$$
$$sqrt{a^2+60}+sqrt{a^2-75}=27 ---答案(a=14)$$
$$sqrt{a^2+60}+sqrt{a^2-96}=26 ---答案(a=14)$$
$$sqrt{a^2+93}+sqrt{a^2-96}=27 ---答案(a=14)$$
$$sqrt{a^2+31}+sqrt{a^2-56}=29 ---答案(a=15)$$
$$sqrt{a^2+31}+sqrt{a^2-81}=28 ---答案(a=15)$$
$$sqrt{a^2+64}+sqrt{a^2-81}=29 ---答案(a=15)$$
$$sqrt{a^2+33}+sqrt{a^2-60}=31 ---答案(a=16)$$
$$sqrt{a^2+33}+sqrt{a^2-87}=30 ---答案(a=16)$$
$$sqrt{a^2+68}+sqrt{a^2-87}=31 ---答案(a=16)$$
$$sqrt{a^2+35}+sqrt{a^2-64}=33 ---答案(a=17)$$
$$sqrt{a^2+35}+sqrt{a^2-93}=32 ---答案(a=17)$$
$$sqrt{a^2+72}+sqrt{a^2-93}=33 ---答案(a=17)$$
$$sqrt{a^2+37}+sqrt{a^2-68}=35 ---答案(a=18)$$
$$sqrt{a^2+37}+sqrt{a^2-99}=34 ---答案(a=18)$$
$$sqrt{a^2+76}+sqrt{a^2-99}=35 ---答案(a=18)$$
$$sqrt{a^2+39}+sqrt{a^2-72}=37 ---答案(a=19)$$
$$sqrt{a^2+41}+sqrt{a^2-76}=39 ---答案(a=20)$$
$$sqrt{a^2+43}+sqrt{a^2-80}=41 ---答案(a=21)$$
$$sqrt{a^2+45}+sqrt{a^2-84}=43 ---答案(a=22)$$
$$sqrt{a^2+47}+sqrt{a^2-88}=45 ---答案(a=23)$$
$$sqrt{a^2+49}+sqrt{a^2-92}=47 ---答案(a=24)$$
$$sqrt{a^2+51}+sqrt{a^2-96}=49 ---答案(a=25)$$