Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13089

List:{1}, {2,3},{4,5,6}....

From hknetman <hknetman@hotmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject List:{1}, {2,3},{4,5,6}....
Date 2013-01-11 02:38 +0000
Message-ID <kcntv4$f8h$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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.

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

List:{1}, {2,3},{4,5,6}.... hknetman <hknetman@hotmail.com> - 2013-01-11 02:38 +0000
  Re: List:{1}, {2,3},{4,5,6}.... "Moses, Peter J. C." <mows@mopar.freeserve.co.uk> - 2013-01-12 03:22 +0000
  Re: List:{1}, {2,3},{4,5,6}.... Ray Koopman <koopman@sfu.ca> - 2013-01-12 03:23 +0000
  Re: List:{1}, {2,3},{4,5,6}.... Ray Koopman <koopman@sfu.ca> - 2013-01-12 03:24 +0000

csiph-web