in reply to Hash problem

Maybe some of the $a values are repeated?