OFFSET
0,2
COMMENTS
Variant of Fibonacci sequence.
With the exception of the number 2, all numbers which occur in this sequence occur twice. The second occurrence is always 3 places after the first, e.g., a(0) = a(3) = 1; a(7) = a(10) = 7. In addition, if we take only one occurrence of each number and sort them, we get the ascending list: 1,2,3,4,7,11, ... [see A000032 or A080023].
FORMULA
G.f.: (1 + 2z + 2z^2 - z^3)/(1 - z^2 - z^4). [Emeric Deutsch, Jul 25 2009]
MAPLE
G := (1+2*z+2*z^2-z^3)/(1-z^2-z^4): Gser := series(G, z = 0, 53): seq(coeff(Gser, z, n), n = 0 .. 50); # Emeric Deutsch, Jul 25 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Felix Tubiana, Jan 23 2004
EXTENSIONS
Previous a(32)-a(34) removed by Georg Fischer, Apr 16 2020
STATUS
approved