http://www.perlmonks.org?node_id=528690


in reply to 2, 2, 2, 3, 7, 22, 83, ...

it's easy: 326

An approximation to the Camel Problem
Ceiling((3-sqrt(3))*4^(n-3)) + 1

Ok, i've cheated:
http://public.research.att.com/~njas/sequences/?q=2%2C2%2C2%2C3%2C7%2C22%2C83&sort=0&fmt=0&language=english&go=Search