OFFSET
0,4
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..4862
FORMULA
a(n) = n - A244229(n).
EXAMPLE
The first nonnegative integers represented in Greedy Catalan Base look like:
A014418(0) = 0
A014418(1) = 1
A014418(2) = 10
A014418(3) = 11
A014418(4) = 20
A014418(5) = 100
A014418(6) = 101
Of these, the first "odd" representation (ending with one) occurs at n=1, thus a(0) = 0, but a(1) = 1. As the next odd occurs at n=3, also a(2) = 1, but a(3) = 1+1 = 2. The next odd representation does not occur until at n=6, thus a(4) = a(5) = 2 and a(6) = 3.
PROG
(Scheme, with Antti Karttunen's IntSeq-library for memoizing definec-macro)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 23 2014
STATUS
approved