How To Find The Right Sequence In Computing A Function