Skip to main content
2 of 3
added 18 characters in body

R, 37 35 bytes

Nothing original, given the previous answers:

(((3+5^.5)/2)^(scan()+1)/5)%/%1*4+2 

Try it online!