Find a general solution for this recurrence: $a_n = \sqrt{a_{n-1}a_{n-2}}$

combinationsrecurrence-relations

Find a general solution for this recurrence:
$$a_n = \sqrt{a_{n-1}a_{n-2}}$$
when $a_1 = 2$, $a_2 = 8$.


My attempt to solve it:

This recurrence isn't a regular one. In order to solve it,
I have tried to count the first elements in this recurrence, which are $$a_1 = 2, a_2 = 8, a_3 = 4, a_4 = \sqrt{32}, a_5 = \sqrt{512} …,$$ but I didn't find any way to proceed.

Any help will be very appreciated.

Best Answer

Hint: By taking the log (with respect to any base) of both sides, we can rewrite the recurrence as $$ \log(a_n) = \frac 12[\log(a_{n-1}) + \log(a_{n-2})] $$ So, the sequence $b_n := \log(a_n)$ satisfies a linear recurrence.