[seqfan] Complex base reinterpretation sequence

Pierre Abbat phma at bezitopo.org
Sun May 15 09:46:12 CEST 2022

I just made the following sequence:

> take 100 (map (gosperSerial . integerToGosperInteger) [0..])

The steps to compute the nth number in the sequence are:
1. Express n as an Eisenstein integer in base 2.5-√-0.75 (called the Gosper 
base) using cyclotomic digits, where 0 and 1 represent themselves and the 
units are 1,3,2,6,4,5 counterclockwise.
2. Reinterpret the sequence of digits as base 7.
3. Output the resulting nonnegative integer in decimal.

The growth is on the order of quadratic, but with big jumps both up and down. 
For all n, a[n] ≡ n mod 7.

The program that generates this sequence is at https://github.com/phma/
gosperbase . Like Quadlods, which generates A322289 but is a library and 
application for generating two kinds of low-discrepancy sequences, Gosperbase, 
which I'm still developing, will be a library for computing both integers and 
floats in Gosper base.

I don't expect any applied use of Gosperbase. It's just a demonstration that 
arithmetic, including long division, can be done in a complex base. (I've done 
the division code in C++, but then got stuck on the parser, so I'm rewriting 
the whole thing in Haskell.) Quadlods is intended for applied use; I currently 
have a job prospect which may use Quadlods.

gau do li'i co'e kei do

More information about the SeqFan mailing list