Re: Table / TableForm Question

*To*: mathgroup at smc.vnet.net*Subject*: [mg85547] Re: Table / TableForm Question*From*: Daniel Huber <dh at metrohm.ch>*Date*: Wed, 13 Feb 2008 06:55:15 -0500 (EST)*References*: <foudj3$lpq$1@smc.vnet.net>

Hi Lea, the upper bound of the second iterator must depend on the first iterator: Table[i*j, {i, 6}, {j, 7 - i}] // TableForm hoipe this helps, Daniel Lea Rebanks wrote: > Hi All, > > Simple question from the Homework section HW06.nb - Number 7. > > Use nested " Table[]" commands to create the following list display: > > TableForm[{{1, 2, 3, 4, 5, 6}, > {2, 4, 6, 8, 10}, {3, 6, 9, 12}, > {4, 8, 12}, {5, 10}, {6}}] > { > {1, 2, 3, 4, 5, 6}, > {2, 4, 6, 8, 10, }, > {3, 6, 9, 12, , }, > {4, 8, 12, , , }, > {5, 10, , , , }, > {6, , , , , } > } > > Here is what it should look like Displayed:- > 1 2 3 4 5 6 > 2 4 6 8 10 > 3 6 9 12 > 4 8 12 > 5 10 > 6 > > > Here is my attempt. > > Table[i*j, {i, 6}, {j, 6}] > {{1, 2, 3, 4, 5, 6}, {2, 4, 6, 8, > 10, 12}, {3, 6, 9, 12, 15, 18}, > {4, 8, 12, 16, 20, 24}, > {5, 10, 15, 20, 25, 30}, > {6, 12, 18, 24, 30, 36}} > > ... I'm not quite there as you can see. > > > Any help & advice gratefully received. > Many thanks for your help & attention. > > Best Regards - Lea Rebanks... >