OFFSET
0,3
COMMENTS
The ternary expansion of a(n) equals the decimal expansion of A381579(n).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..6560
EXAMPLE
The ternary expansion of 20, "211", has no pairs of 2's, so 20 belongs to the sequence.The ternary expansion of 21, "212", has a pair of 2s only separated by 1's, so 21 does not belong to the sequence.
PROG
(PARI) a(n) = { for (k = 1, oo, my (f = fibonacci(2*k)); if (f >= n, my (v = 0); while (n, while (n >= f, n -= f; v += 3^(k-1); ); f = fibonacci(2*k--); ); return (v); ); ); }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 01 2025
STATUS
approved
