Sum of first n cubes: Difference between revisions
Content added Content deleted
(added Vtl-2) |
(K) |
||
Line 1,383: | Line 1,383: | ||
[0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, 11025, 14400, 18496, 23409, 29241, 36100, 44100, 53361, 64009, 76176, 90000, 105625, 123201, 142884, 164836, 189225, 216225, 246016, 278784, 314721, 354025, 396900, 443556, 494209, 549081, 608400, 672400, 741321, 815409, 894916, 980100, 1071225, 1168561, 1272384, 1382976, 1500625] |
[0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, 11025, 14400, 18496, 23409, 29241, 36100, 44100, 53361, 64009, 76176, 90000, 105625, 123201, 142884, 164836, 189225, 216225, 246016, 278784, 314721, 354025, 396900, 443556, 494209, 549081, 608400, 672400, 741321, 815409, 894916, 980100, 1071225, 1168561, 1272384, 1382976, 1500625] |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|K}}== |
|||
{{works with|ngn/k}}<syntaxhighlight lang=K>5 10#+\{x*x*x}[!50] |
|||
(0 1 9 36 100 225 441 784 1296 2025 |
|||
3025 4356 6084 8281 11025 14400 18496 23409 29241 36100 |
|||
44100 53361 64009 76176 90000 105625 123201 142884 164836 189225 |
|||
216225 246016 278784 314721 354025 396900 443556 494209 549081 608400 |
|||
672400 741321 815409 894916 980100 1071225 1168561 1272384 1382976 1500625)</syntaxhighlight> |
|||
=={{header|MAD}}== |
=={{header|MAD}}== |