I was learning a lot about hypercomplex numbers lately. I've seen articles about complex numbers, double numbers, dual numbers, binarions, quaternions, octonions etc.
But one thing in common about all these is, first basis in all of these is 1. Why so? For eg, can't I have a number with basis $ \{ i, j, k \}, i^2 = j^2 = k^2 = ijk = -1 $? Also, why all hypercomplex numbers have a dimension of power of 2 over reals? Is 3, 5, or 6 dimensional algebra not possible?
Also, why only consider $i^2$? Can I define a number of the form $a+ib, i^3=-1, i^2=0, i\neq-1, i\neq0$. Is this a new number? or is it isomorphic to some existing system?
What most of the algebras that you mentioned have in common is that they are all examples of unital algebras. A unital algebra is an algebra with a multiplicative identity element, and that multiplicative identity element is denoted with the symbol $1,$ though this is a bit of an abuse of notation. We really should denote it as $\vec1.$
I do not know what the double numbers are, and the binarions are just another name for the complex numbers. The dual numbers are an alternative to the complex numbers. Consider the the vector space $\mathbb{R}^2$ with basis $\{e_0,e_1\}.$ To form an algebra, we want a bilinear product $\cdot,$ and so if we can determine the products of the basis vectors, bilinearity is sufficient to determine all the products in the vector space. Bilinearity, to put it simply, is a more technical way of addressing distributivity. We also want the algebra to be unital, i.e, that is, for $e_0\cdot{x}=x\cdot{e_0}=x.$ Hence we know $e_0\cdot{e_0}=e_0$ and $e_0\cdot{e_1}=e_1\cdot{e_0}=e_1.$ The remaining product to determine is $e_1\cdot{e_1}.$ We know that $e_1\cdot{e_1}=e_1^2=ae_0+be_1,$ so $e_1^2-be_1-ae_0=0.$ We can complete the square, so that $e_1^2-be_1+\frac{b^2}4e_0=\left(\frac{b^2}4+a\right)e_0=\left(e_1-\frac{b}2e_0\right)^2.$ Since $\frac{b^2}4+a$ are themselves real numbers, this limits what the possible products $e_1^2$ can be. The three different cases are $\frac{b^2}4+a\lt0,$ $\frac{b^2}4+a=0,$ and $\frac{b^2}4+a\gt0.$ These three cases determine the three possible unital algebras over $\mathbb{R}^2$ up to isomorphism. These cases give the complex numbers, the dual numbers, and the split-complex numbers, respectively.
Of course, nothing is limiting you to make your algebra unital. You can have other number systems, those systems are just not named and not particularly interesting as extensions of the real numbers. But you can study them and they are perfectly valid structures to work with.
Now, let us talk about quaternions and octonions. You should look into the Cayley-Dickson construction. The construction is a construction that systematically extends the real numbers to the complex numbers, and applying the construction again to the complex numbers produces the quaternions, and applying it to the quaternions produces the octonions, and so on. Thus, the reason these algebras have a dimension that is a power of $2$ is because of the way the Cayley-Dickson construction works.
But if you are willing to work with algebras not built from the Cayley-Dickson construction, then there is absolutely nothing wrong with using algebras of other dimensions. On YouTube, there is a very good video about the triplex numbers, a unital associative and commutative algebra over $\mathbb{R}^3.$ The basis is $\{1,i,j\}$ and one has $i\cdot{j}=j\cdot{i}=1,$ and $i^2=j$ and $j^2=i.$ This actually equivalent to making the basis $\{1,i,i^2\}$ and noting the rule that $i^3=1,$ thus uniquely determining the multiplication table.
Now, to answer your last question: why only consider $i^2$? Well, not all algebras focus on only $i^2,$ as shown above. However, if you do uniquely determine $i^2=r$ where $r\in\mathbb{R},$ then you cannot separately control what $i^3$ is, because then $i^3=ri,$ necessarily. You cannot have it any other way. In general, if $i^n=r$ with $r\in\mathbb{R}$ for some $n\in\mathbb{N},$ then $i^{m+n}$ is automatically determined for all $m\in\mathbb{Z},$ so you have no freedom to choose those individually. In the example you gave, you suggested, $i^2=0,$ which makes your algebra equivalent to the dual numbers. Thus, it is already impossible that $i^3=-1,$ because $i^3=i\cdot{i^2}=i0=0.$ You can have some number system where $i^3=-1$ and $i^2=0,$ but that number system will not be an algebra over anything, and the multiplication will not distribute over addition. This opens up a whole can of worms beyond the scope of your question.
If you want more on the subject, you should read on the subject of Clifford algebras, the theory that unifies all of these concepts together.
EDIT 1: I would also like to point out that if you want to get really creative with number systems, you are not limited to algebras over $\mathbb{R}.$ You can form algebras over any field. Why not try making $2$-dimensional algebras over the field with two elements $\mathbb{Z}_2$? What about algebras over $\mathbb{Q}$?