Square numbers and the Alexander and HOMFLY polynomial of achiral knots