List:{1}, {2,3},{4,5,6}....
- To: mathgroup at smc.vnet.net
- Subject: [mg129393] List:{1}, {2,3},{4,5,6}....
- From: hknetman <hknetman at hotmail.com>
- Date: Thu, 10 Jan 2013 21:39:36 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
I use the command list = Table[i + 1, {n, 1, 5}, {i, n (n - 1)/2, n (n - 1)/2 + n - 1}] to get the following result: {{1}, {2, 3}, {4, 5, 6}, {7, 8, 9, 10}, {11, 12, 13, 14, 15}} Is there any better method? Thanks a lot.
- Follow-Ups:
- Re: List:{1}, {2,3},{4,5,6}....
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: List:{1}, {2,3},{4,5,6}....