RSolve[{a[n + 1] == c a[n - 1] a[n], a[0] == a, a[1] = b}, a[n], n]