OFFSET
0,2
COMMENTS
Table 1 of Andrica 2021 paper (p. 24) refers to A006190 as the "bronze Fibonacci" numbers.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
Dorin Andrica, Ovidiu Bagdasar, and George Cătălin Tųrcąs, On some new results for the generalised Lucas sequences, An. Şt. Univ. Ovidius Constanţa (Romania, 2021) Vol. 29, No. 1, 17-36. See Section 5.3, pp. 33, Table 4.
EXAMPLE
MATHEMATICA
Block[{a = 3, b = -1, nn = 105, u, v = {}}, u = {0, 1}; Do[AppendTo[u, Total[{-b, a} u[[-2 ;; -1]]]]; AppendTo[v, Count[u, _?(# <= i &)]], {i, nn}]; {Boole[First[u] <= 0]}~Join~v] (* or *)
Accumulate@ ReplacePart[ConstantArray[0, Last[#]], Map[# -> 1 &, # + 1]] &@ Fibonacci[Range[0, 5], 3] (* Michael De Vlieger, Jun 16 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ovidiu Bagdasar, Jun 16 2021
STATUS
approved