I want to create a table showing LCM[1,2], LCM[1,2,3], LCM[1,2,3,4], ..., LCM[1,2,3,...,m]. I figure I should be able to use Range to do this, but I can't quite figure out how. My attempt so far:
Module[{m = 10}, table = Table[Range[n], {n, 1, m}]; TableForm[ Table[{n, LCM[table[[n]]]}, {n, 1, m}], TableHeadings -> {None, {"n", "LCM[1\[Rule]n]"}}]] This doesn't work. I suspect it's something to do with how the list table is 'wrapped' in parentheses {{...},{...},...,{...}} but I'm not really sure.
How do I do it?
