A290536 Let S be the sequence generated by these rules: 0 is in S, and if z is in S, then z + 1 and z * (1+i) are in S (where i denotes the imaginary unit), and duplicates are deleted as they occur; a(n) = the real part of the n-th term of S.
0, 1, 2, 1, 3, 2, 2, 0, 4, 3, 3, 0, 3, 1, 1, -2, 5, 4, 4, 0, 4, 1, 1, -4, 4, 2, 2, -2, -1, -1, -4, 6, 5, 5, 0, 5, 1, 1, -6, 5, 2, 2, -4, -3, -3, -8, 5, 3, 3, -2, -1, -1, -6, 0, -4, -3, -3, -4, 7, 6, 6, 0, 6, 1, 1, -8, 6, 2, 2, -6, -5, -5, -12, 6, 3, 3, -4, -3
Offset: 1
Examples
S(1) = 0 by definition; so a(1) = 0. S(1)+1 = 1 has not yet occurred; so S(2) = 1 and a(2) = 1. S(1)*(i+i) = 0 has already occurred. S(2)+1 = 2 has not yet occurred; so S(3) = 2 and a(3) = 2. S(2)*(1+i) = 1+i has not yet occurred; so S(4) = 1+i and a(4) = 1. S(3)+1 = 3 has not yet occurred; so S(5) = 3 and a(5) = 3.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, Representation of the first 100000 terms of S in the complex plane
- Rémy Sigrist, Colorized representation of the first 100000 terms of S in the complex plane
- Rémy Sigrist, PARI program for A290536
- Wikipedia, Gaussian integer
Programs
-
PARI
See Links section.
Comments