login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A226538 a(2t) = a(2t-1) + 1, a(2t+1) = a(2t) + a(2t-2) for t >= 1, with a(0) = a(1) = 1. 3
1, 1, 2, 3, 4, 6, 7, 11, 12, 19, 20, 32, 33, 53, 54, 87, 88, 142, 143, 231, 232, 375, 376, 608, 609, 985, 986, 1595, 1596, 2582, 2583, 4179, 4180, 6763, 6764, 10944, 10945, 17709, 17710, 28655, 28656, 46366, 46367, 75023, 75024, 121391, 121392, 196416, 196417 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(2n) = A000071(n+3), a(2n+1) = A001911(n+1). - Philippe Deléham, Jun 18 2013
G.f.: (1+x+x^3)/((1-x)*(1+x)*(1-x^2-x^4)). - Philippe Deléham, Jun 18 2013
a(n) = a(n-1) + a(n-3)*(1-(-1)^n)/2 + (1+(-1)^n)/2. - Paolo P. Lava, Jun 27 2013
MAPLE
f:= proc(n) option remember;
if n <= 1 then 1
elif n mod 2 = 0 then f(n-1)+1
else f(n-1)+f(n-3)
fi
end:
t21:=[seq(f(n), n=0..60)];
MATHEMATICA
LinearRecurrence[{0, 2, 0, 0, 0, -1}, {1, 1, 2, 3, 4, 6}, 50] (* Jean-François Alcover, Feb 13 2018 *)
PROG
(Haskell)
a226538 n = a226538_list !! n
a226538_list = concat $ transpose [drop 2 a000071_list, tail a001911_list]
-- Reinhard Zumkeller, Jun 18 2013
CROSSREFS
Sequence in context: A237667 A325769 A360955 * A339510 A191930 A202113
KEYWORD
nonn,easy
AUTHOR
V. T. Jayabalaji, Jun 10 2013
EXTENSIONS
Edited by N. J. A. Sloane, Jun 18 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 28 21:55 EDT 2024. Contains 372095 sequences. (Running on oeis4.)