add calculating probability for 1<=k<=10