OFFSET
0,2
COMMENTS
See A318722 for the real part of g and additional comments.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..12287
PROG
(PARI) a(n) = my (d=Vecrev(digits(1+n+n\3, 4)), z=0); for (k=1, #d, if (d[k], z = I^d[k] * (-z + (1+I) * 2^(k-1)))); norm((z-1-I)/2)
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Sep 02 2018
STATUS
approved