Post History
C (gcc), 35 bytes f(n){return n<2?n:f(n-1)*2+f(n-2);} Try it online!
Answer
#2: Post edited
# [C (GCC)](https://gcc.gnu.org), 35 bytes- ``` C
- f(n){return n<2?n:f(n-1)*2+f(n-2);}
- ```
- [Try it online!](https://tio.run/##HYrBDsIgEETvfMWmpgkrbaMcBfVHvBgouoldDLZemn47gnN5k5nn@odzeUfsXosfwX5mT3F4XnKQjGsa5yUxsNVXPpWlP@Jeq1o0mi0TzzDdieU3kkexCigJMYGsD8EZDqbAgi5UivAv1LxTMYJsgmwH7bGYrb9x0wF1ECQhGrHlHw)
- # [C (gcc)](https://gcc.gnu.org), 35 bytes
- ``` C
- f(n){return n<2?n:f(n-1)*2+f(n-2);}
- ```
- [Try it online!](https://tio.run/##HYrBDsIgEETvfMWmpgkrbaMcBfVHvBgouoldDLZemn47gnN5k5nn@odzeUfsXosfwX5mT3F4XnKQjGsa5yUxsNVXPpWlP@Jeq1o0mi0TzzDdieU3kkexCigJMYGsD8EZDqbAgi5UivAv1LxTMYJsgmwH7bGYrb9x0wF1ECQhGrHlHw)
#1: Initial revision
# [C (GCC)](https://gcc.gnu.org), 35 bytes ``` C f(n){return n<2?n:f(n-1)*2+f(n-2);} ``` [Try it online!](https://tio.run/##HYrBDsIgEETvfMWmpgkrbaMcBfVHvBgouoldDLZemn47gnN5k5nn@odzeUfsXosfwX5mT3F4XnKQjGsa5yUxsNVXPpWlP@Jeq1o0mi0TzzDdieU3kkexCigJMYGsD8EZDqbAgi5UivAv1LxTMYJsgmwH7bGYrb9x0wF1ECQhGrHlHw)