OFFSET
0,3
COMMENTS
For any Eisenstein integer z = u + v*w (where u and v are integers), we call u the "real" part of z and v the "w" part of z.
It appears that f defines a bijection from the nonnegative integers to the Eisenstein integers.
The following diagram depicts g(d) for d = 0..12:
"w" axis
\
. .
\ 4
\
. . . .
6 5 \ 3 2
\
._____._____._____._____._ "real" axis
7 0 \ 1
\
. . . .
8 9 11 \ 12
\
. .
10 \
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..2196
Joerg Arndt, Representation of a similar construction
Rémy Sigrist, Colored representation of f for n = 0..13^5-1 in the complex plane (the hue is function of n)
Rémy Sigrist, PARI program for A348916
Wikipedia, Eisenstein integer
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Nov 03 2021
STATUS
approved