Ben Franklin and the magic squares