two questions: A) list length of solve result, B) 0^0



It might be better, to change the definition of my_bernstein to check for
k=0, since you might not
wish for 0^0 to be replaced by 1, all the time.