OFFSET
0,1
COMMENTS
From Klaus Brockhaus, Dec 10 2009: (Start)
Also continued fraction expansion of (15+sqrt(285))/10.
Also decimal expansion of 35/99.
Binomial transform of 3 followed by A084633 without initial terms 1,0.
Inverse binomial transform of A171497. (End)
LINKS
FORMULA
From Klaus Brockhaus, Dec 10 2009: (Start)
a(n) = a(n-2) for n > 1; a(0) = 3, a(1) = 5.
G.f.: (3+5*x)/((1-x)*(1+x)). (End)
a(n) = 4 - (-1)^n. - Aaron J Grech, Aug 02 2024
E.g.f.: 3*cosh(x) + 5*sinh(x). - Stefano Spezia, Aug 04 2024
MATHEMATICA
Table[If[OddQ[n], 3, 5], {n, 1, 50}] (* Stefan Steinerberger, Apr 10 2006 *)
PadRight[{}, 120, {3, 5}] (* Harvey P. Dale, Sep 03 2012 *)
PROG
(Magma) &cat[ [3, 5]: n in [1..53] ]; // Klaus Brockhaus, Dec 10 2009
(PARI) a(n)=3+n%2*2 \\ Charles R Greathouse IV, Nov 20 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved