OFFSET
0,2
COMMENTS
Conjecture: a(n) = least positive whose base-4 total variation is n; see A297551.
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,4,0,-4)
FORMULA
G.f.: (1 + 4 x + 6 x^2 + 4 x^3 - 4 x^4 - 8 x^5)/(1 - x^2 - 4 x^3 + 4 x^5).
MATHEMATICA
Join[{1}, LinearRecurrence[{0, 1, 4, 0, -4}, {4, 7, 12, 19, 28}, 40]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jan 21 2018
STATUS
approved