MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


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.



  • Prev by Date: wrong result when computing a definite integral
  • Next by Date: Dynamically updated CurrentValue: I want to know which key is being pressed?
  • Previous by thread: Re: wrong result when computing a definite integral
  • Next by thread: Re: List:{1}, {2,3},{4,5,6}....