OFFSET
0,3
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
PROG
(PARI) a(n) = my (d=Vecrev(digits(n, 9))); norm(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
AUTHOR
Rémy Sigrist, Sep 01 2018
STATUS
approved