OFFSET
0,19
COMMENTS
See A318705 for the real part of g and additional comments.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..6560
FORMULA
a(9 * k) = 3 * a(k) for any k >= 0.
PROG
(PARI) a(n) = my (d=Vecrev(digits(n, 9))); imag(sum(k=1, #d, if (d[k], 3^(k-1)*I^floor((d[k]-1)/2)*(1+I)^((d[k]-1)%2), 0)))
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Sep 01 2018
STATUS
approved