$a_{n+1}=(a_{n}+g_{n})/2,$