JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>x</li>
    <li>2<sup>x</sup></li>
    <li>2<sup>x</sup> % 3</li>
</ul>
<ul>
    <li>0</li>
    <li>1</li>
    <li>1</li>
</ul>

CSS

ul{
    float:left
}

JavaScript

for(var i = 0; i < 1000; i++){
        $('body > ul:nth-child(2) > li:nth-child(1)').html(i);
        $('body > ul:nth-child(2) > li:nth-child(2)').html(Math.pow(2,i));
        $('body > ul:nth-child(2) > li:nth-child(3)').html(Math.pow(2,i)%3);
        if(Math.pow(2,i)%3==0) break;
}