If an+1+bn+1an+bn is the AM (arithmetic mean) between 'a' and 'b', then find the value of n.
The arithmetic mean of a and b is an+bnan−1+bn−1. The value of n is