The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A256441 Binary representation of base-(i-1) expansion of -n: replace i-1 with 2 in base-(i-1) expansion of -n. 4

%I #21 Jan 22 2023 20:44:59

%S 0,29,28,17,16,205,204,193,192,221,220,209,208,7437,7436,7425,7424,

%T 7453,7452,7441,7440,7629,7628,7617,7616,7645,7644,7633,7632,7181,

%U 7180,7169,7168,7197,7196,7185,7184,7373,7372,7361,7360,7389,7388,7377,7376,4365

%N Binary representation of base-(i-1) expansion of -n: replace i-1 with 2 in base-(i-1) expansion of -n.

%C Here i = sqrt(-1).

%C From _Jianing Song_, Jan 22 2023: (Start)

%C Also binary representation of base-(-1-i) expansion of -n.

%C Write out -n in base -4 (A212526), change each digit 0, 1, 2, 3 to 0000, 0001, 1100, 1101 respectively, then interpret as a binary number. (End)

%H Paul Tek, <a href="/A256441/b256441.txt">Table of n, a(n) for n = 0..10000</a>

%H Paul Tek, <a href="/A256441/a256441.pl.txt">Perl program for this sequence</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Complex-base_system">Complex-base system</a>

%F For n >= 1, a(4*n-0..3) = 16 * A066321(n) + 0, 1, 12, 13 respectively. - _Jianing Song_, Jan 22 2023

%e a(5) = 205 = 2^7 + 2^6 + 2^3 + 2^2 + 2^0 since (i-1)^7 + (i-1)^6 + (i-1)^3 + (i-1)^2 + (i-1)^0 = -5.

%o (Perl) See Links section.

%o (PARI) a(n) = my(v = [-n,0], x=0, digit=0, a, b); while(v!=[0,0], a=v[1]; b=v[2]; v[1]=-2*(a\2)+b; v[2]=-(a\2); x+=(a%2)*2^digit; digit++); x \\ _Jianing Song_, Jan 22 2023; [a,b] represents the number a + b*(-1+i)

%Y Cf. A066321.

%K base,nonn,easy

%O 0,2

%A _Paul Tek_, Mar 29 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 05:21 EDT 2024. Contains 372498 sequences. (Running on oeis4.)