// In this file we take advantage of Infiqs's simplicity, and we
// hide subscript formulas from it by not using whitespace.

import java.math.BigDecimal;
import java.math.MathContext;

public class SubscriptsDemo
{

	public static void main(String[] args)
	{
	MathContext mc=new MathContext(40);
	int k=13;
	BigDecimal[] x=new BigDecimal[k];
	BigDecimal[] y=new BigDecimal[k];
	BigDecimal[] z=new BigDecimal[k];

		for( int j=0;j<k;j++ )
		{
		y[j]=new BigDecimal(j);
		}

		for( int j=1;j<=k-2;j++ )
		{
		// Note use or non-use of white-space in the next two lines.
		z[j] = y[j+1].multiply(y[j-1],mc) ;
		x[j] = y[j-1].add(z[j],mc) ;
		}

		System.out.println( "j\tx[j]\ty[j]\tz[j]\n" );

		for( int j=k-2;j>=1;j-- )
		{
		System.out.println( j+"\t"+x[j]+"\t"+y[j]+"\t"+z[j] );
		}
	}


}
