Hey, I just found this logic puzzle. It looks similar to the painting. Could something like this apply?
http://m.imgur.com/YOTyZMD?rEdit: I had a chance to look into this further. The image I posted seems similar to a soduko puzzle, and soduko puzzles even use numbers 1-9. I've never played soduko, so I'm not much help here.