formula for number sequence - Search