Hello,
Founded 20 solutions with :
$c=0
puts “a b c d e f g h i”
puts “-----------------”
[1,2,3,4,5,6,7,8,9].permutation do |a,b,c,d,e,f,g,h,i|
next if (13b).divmod©.last!=0
next if (gh).divmod(i).last!=0
if a+ 13b/c +d + 12e -f -11 +g*h/i -10 == 66
$c+=1
puts “#{a} #{b} #{c} #{d} #{e} #{f} #{g} #{h} #{i}”
end
end
puts “Count: #{$c}”
Is there some mistake ?