OFFSET
0,5
COMMENTS
Sum of digits minus the number of trailing 2's in the base-3 representation of n (A007089).
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..59049
FORMULA
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Sep 17 2023
STATUS
approved