factored majic nummbers; fixed graph