OFFSET
0,5
COMMENTS
See A318723 for the imaginary part of g.
See A318724 for the square of the modulus of g.
This sequence can be computed by considering the base 4 representation of A042968, hence the keyword base.
The function g runs uniquely through the set of Gaussian integers z such that Re(z) < 0 or Im(z) < 0.
The function g is related to the numbering of the cells in a Chair tiling (see representation of g(n) in Links section).
This sequence has similarities with A316657.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..12287
Rémy Sigrist, Colored scatterplot of (a(n), A318723(n)) for n = 0..3*4^9-1 (where the hue is function of n)
Rémy Sigrist, Colored scatterplot of (a(n), A318723(n)) for n = 0..3*4^9-1 (where the color is function of the sum of digits of A042968(n) in base 4)
Rémy Sigrist, Representation of g(n) for n = 0..3*4^2-1 in the complex plane, alongside the base 4 representation of A042968(n)
Tilings Encyclopedia, Chair
FORMULA
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)))); real((z-1-I)/2)
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Sep 02 2018
STATUS
approved