Write a program to convert a base −1+i integer to the form a + bi.
Analyze the write a program to convert a base −1+i integer to the form a + bi..
Examples
Input:"test_input_1"
Output:"output_1"
Input:"test_input_2"
Output:"output_2"
Hints
Consider how complex numbers can be represented in different bases, and how multiplication works in the complex plane.
Explore the relationship between powers of (-1 + i) and their corresponding a + bi forms to identify a pattern or recurrence.
Investigate the use of matrix exponentiation or logarithmic transformations to efficiently compute large powers of (-1 + i) in the complex base system.
Write a program to convert a base −1+i integer to the form a + bi.
Analyze the write a program to convert a base −1+i integer to the form a + bi..