In 31-recursive, return previously computed number if exists in memo.