contestada

scientist released 8 rabbits into a new habitat in year 0. Each year, there were twice as many rabbits as the year before. How many rabbits were there after X years? Write a function to represent this scenario.