OFFSET
0,6
COMMENTS
See A316657 for the real part of f and additional comments.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
FORMULA
PROG
(PARI) a(n) = my (d=Vecrev(digits(n, 5)), z=sum(i=1, #d, if (d[i], (2+I)^(i-1) * I^(d[i]-1), 0))); real(z)^2 + imag(z)^2
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 11 2018
STATUS
approved