<p id="dis"></p>
#dis{
  color:green;background-color:black;padding:20px;
}
// Change here the following and see:
var x_nought=-2; //Change here for initial value
var no_iterations=15; // change this for number of iterations.
var a=x_nought;
var n=no_iterations;
var str="";
for(var i=0;i<=n;i++){
   str+="x<sub>" + i + "</sub> = " + a+"<br>";
    a=Math.pow(6+a,0.5); 
};
 document.getElementById('dis').innerHTML=str;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.