OFFSET
0,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..4862
EXAMPLE
The first nonnegative integers represented in Greedy Catalan Base look like this:
A014418(0) = 0
A014418(1) = 1
A014418(2) = 10
A014418(3) = 11
A014418(4) = 20
A014418(5) = 100
A014418(6) = 101
A014418(7) = 110
Of these, the first "even" representation (ending with zero) occurs at n=0, thus a(0) = 1, and as 1 is odd, also a(1) = 1. The next even occurs at n=2, so a(2) = 2. The next even representations after that occur at n=4, 5 and 7, thus a(3) = 2, a(4) = 3, a(5) = 4, a(6) = 4 and a(7) = 5.
PROG
(Scheme, with Antti Karttunen's IntSeq-library for memoizing definec-macro)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 23 2014
STATUS
approved