Determining the Rule and Term in a Sequence