OFFSET
0,3
COMMENTS
LINKS
FORMULA
a(0)=1, a(1)=1, a(2)=2, a(n)=n+2.
From Chai Wah Wu, Jul 28 2022: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 4.
G.f.: (-2*x^4 + 2*x^3 + x^2 - x + 1)/(x - 1)^2. (End)
PROG
(PARI) a(n)=if(n>2, n+2, 1) \\ Charles R Greathouse IV, Jun 20 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Sep 07 2000
EXTENSIONS
More terms from Sean A. Irvine, Jun 13 2022
STATUS
approved