{"group":{"group":{"id":16957,"name":"Sum of series","lockable":false,"created_at":"2021-03-16T09:34:13.000Z","updated_at":"2026-04-06T14:01:22.000Z","description":null,"is_default":false,"created_by":921257,"badge_id":62,"featured":false,"trending":false,"solution_count_in_trending_period":20,"trending_last_calculated":"2026-04-06T00:00:00.000Z","image_id":1872,"published":true,"community_created":true,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 21px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 289.5px 10.5px; transform-origin: 289.5px 10.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 266.5px 10.5px; text-align: left; transform-origin: 266.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","published_at":"2021-03-16T10:39:12.000Z"},"current_player":null},"problems":[{"id":2581,"title":"Sum of series VII","description":"What is the sum of the following sequence:\r\n\r\n Σ(km^k)/(k+m)! for k=1...n\r\n\r\nfor different n and m?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σ(km^k)/(k+m)! for k=1...n\u003c/pre\u003e\u003cp\u003efor different n and m?\u003c/p\u003e","function_template":"function s = sumOfSeriesVII(n,m)\r\ns = n+m;\r\nend","test_suite":"%%\r\nn = 1; m = 1;\r\ns_correct = 1/2;\r\nassert(isequal(sumOfSeriesVII(n,m),s_correct))\r\n\r\n%%\r\nn = 1; m = 2;\r\ns_correct = 1/3;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003ceps)\r\n\r\n%%\r\nn = 3; m = 3;\r\ns_correct = 0.3875;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003ceps)\r\n\r\n%%\r\nn = 4; m = 2;\r\ns_correct = 0.955555555555556;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)\r\n\r\n%%\r\nn = 7; m = 5;\r\ns_correct = 0.0408511683468281;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)\r\n\r\n%%\r\nn = 5; m = 7;\r\ns_correct = 0.00114327593060232;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)\r\n\r\n%%\r\nn = 10; m = 3;\r\ns_correct = 0.499971551885614;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)\r\n\r\n%%\r\nn = 14; m = 4;\r\ns_correct = 0.166666498956709;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)\r\n\r\n%%\r\nn = 15; m = 11;\r\ns_correct = 2.75459255461393e-07;\r\nassert(abs(sumOfSeriesVII(n,m)-s_correct)\u003c10*eps)","published":true,"deleted":false,"likes_count":17,"comments_count":6,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1601,"test_suite_updated_at":"2017-06-13T18:13:20.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T10:26:13.000Z","updated_at":"2026-04-03T06:43:32.000Z","published_at":"2014-09-10T10:26:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ(km^k)/(k+m)! for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n and m?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2575,"title":"Sum of series I","description":"What is the sum of the following sequence:\r\n\r\n Σ(2k-1) for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σ(2k-1) for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesI(n)\r\ns = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 1;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 2;\r\ns_correct = 4;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 10;\r\ns_correct = 100;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 15;\r\ns_correct = 225;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 42;\r\ns_correct = 1764;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 101;\r\ns_correct = 10201;\r\nassert(isequal(sumOfSeriesI(n),s_correct))\r\n\r\n%%\r\nn = 12345;\r\ns_correct = 152399025;\r\nassert(isequal(sumOfSeriesI(n),s_correct))","published":true,"deleted":false,"likes_count":14,"comments_count":1,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2250,"test_suite_updated_at":"2017-06-13T17:57:57.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T09:37:47.000Z","updated_at":"2026-04-11T00:27:15.000Z","published_at":"2014-09-10T09:38:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ(2k-1) for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2576,"title":"Sum of series II","description":"What is the sum of the following sequence:\r\n\r\n Σ(2k-1)^2 for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σ(2k-1)^2 for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesII(n)\r\n  s = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 1;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 2;\r\ns_correct = 10;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 3;\r\ns_correct = 35;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 4;\r\ns_correct = 84;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 5;\r\ns_correct = 165;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 11;\r\ns_correct = 1771;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 42;\r\ns_correct = 98770;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 71;\r\ns_correct = 477191;\r\nassert(isequal(sumOfSeriesII(n),s_correct))\r\n\r\n%%\r\nn = 123;\r\ns_correct = 2481115;\r\nassert(isequal(sumOfSeriesII(n),s_correct))","published":true,"deleted":false,"likes_count":11,"comments_count":2,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1921,"test_suite_updated_at":"2017-06-13T18:00:48.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T09:44:53.000Z","updated_at":"2026-04-10T19:47:55.000Z","published_at":"2014-09-10T09:45:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ(2k-1)^2 for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2577,"title":"Sum of series III","description":"What is the sum of the following sequence:\r\n\r\n Σ(2k-1)^3 for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σ(2k-1)^3 for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesIII(n)\r\ns = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 1;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 2;\r\ns_correct = 28;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 5;\r\ns_correct = 1225;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 10;\r\ns_correct = 19900;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 42;\r\ns_correct = 6221628;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 99;\r\ns_correct = 192109401;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 124;\r\ns_correct = 472827376;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))\r\n\r\n%%\r\nn = 222;\r\ns_correct = 4857776028;\r\nassert(isequal(sumOfSeriesIII(n),s_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":2,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1824,"test_suite_updated_at":"2017-06-13T18:03:10.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T09:51:33.000Z","updated_at":"2026-04-10T20:01:36.000Z","published_at":"2014-09-10T09:52:07.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ(2k-1)^3 for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2578,"title":"Sum of series IV","description":"What is the sum of the following sequence:\r\n\r\n Σ(-1)^(k+1) (2k-1)^2 for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σ(-1)^(k+1) (2k-1)^2 for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesIV(n)\r\n  s = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 1;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 2;\r\ns_correct = -8;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 3;\r\ns_correct = 17;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 4;\r\ns_correct = -32;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 7;\r\ns_correct = 97;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 12;\r\ns_correct = -288;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 33;\r\ns_correct = 2177;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))\r\n\r\n%%\r\nn = 59;\r\ns_correct = 6961;\r\nassert(isequal(sumOfSeriesIV(n),s_correct))","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1718,"test_suite_updated_at":"2017-06-13T18:05:44.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T10:01:03.000Z","updated_at":"2026-04-11T00:28:05.000Z","published_at":"2014-09-10T10:01:33.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ(-1)^(k+1) (2k-1)^2 for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2579,"title":"Sum of series V","description":"What is the sum of the following sequence:\r\n\r\n Σk(k+1) for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σk(k+1) for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesV(n)\r\ns = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 2;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 3;\r\ns_correct = 20;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 4;\r\ns_correct = 40;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 10;\r\ns_correct = 440;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 21;\r\ns_correct = 3542;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 42;\r\ns_correct = 26488;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 88;\r\ns_correct = 234960;\r\nassert(isequal(sumOfSeriesV(n),s_correct))\r\n\r\n%%\r\nn = 99;\r\ns_correct = 333300;\r\nassert(isequal(sumOfSeriesV(n),s_correct))","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1715,"test_suite_updated_at":"2017-06-13T18:07:53.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T10:08:14.000Z","updated_at":"2026-03-28T09:27:09.000Z","published_at":"2014-09-10T10:08:47.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σk(k+1) for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2580,"title":"Sum of series VI","description":"What is the sum of the following sequence:\r\n\r\n Σk⋅k! for k=1...n\r\n\r\nfor different n?","description_html":"\u003cp\u003eWhat is the sum of the following sequence:\u003c/p\u003e\u003cpre\u003e Σk⋅k! for k=1...n\u003c/pre\u003e\u003cp\u003efor different n?\u003c/p\u003e","function_template":"function s = sumOfSeriesVI(n)\r\ns = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ns_correct = 1;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 2;\r\ns_correct = 5;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 3;\r\ns_correct = 23;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 5;\r\ns_correct = 719;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 8;\r\ns_correct = 362879;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 10;\r\ns_correct = 39916799;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 12;\r\ns_correct = 6227020799;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))\r\n\r\n%%\r\nn = 15;\r\ns_correct = 20922789887999;\r\nassert(isequal(sumOfSeriesVI(n),s_correct))","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":3062,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1627,"test_suite_updated_at":"2017-06-13T18:10:27.000Z","rescore_all_solutions":false,"group_id":29,"created_at":"2014-09-10T10:14:09.000Z","updated_at":"2026-03-28T09:16:37.000Z","published_at":"2014-09-10T10:14:54.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σk⋅k! for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45364,"title":"Sum of series","description":" a(n) = n^2 - (n-1)^2\r\n\r\nfind the summation of the series upto n i.e. \r\n\r\n   a(1)+a(2)+...+a(n)","description_html":"\u003cpre\u003e a(n) = n^2 - (n-1)^2\u003c/pre\u003e\u003cp\u003efind the summation of the series upto n i.e.\u003c/p\u003e\u003cpre\u003e   a(1)+a(2)+...+a(n)\u003c/pre\u003e","function_template":"function y=seq_sum(n)\r\n  y = x;\r\nend","test_suite":"%%\r\nassert(isequal(seq_sum(236),55696))\r\n%%\r\nassert(isequal(seq_sum(881224),776555738176))\r\n%%\r\nassert(isequal(seq_sum(10199),104019601))\r\n%%\r\nassert(isequal(seq_sum(8812249),77655732438001))","published":true,"deleted":false,"likes_count":11,"comments_count":2,"created_by":363598,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1255,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-03-14T12:34:14.000Z","updated_at":"2026-03-22T02:49:55.000Z","published_at":"2020-03-14T12:34:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ a(n) = n^2 - (n-1)^2]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efind the summation of the series upto n i.e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[   a(1)+a(2)+...+a(n)]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":50987,"title":"Sum of series VIII","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 82.4333px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 41.2167px; transform-origin: 407px 41.2167px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 134.5px 8px; transform-origin: 134.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWhat is the sum of the following sequence:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 104px 8.5px; transform-origin: 104px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 20px 8.5px; transform-origin: 20px 8.5px; \"\u003e y = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(255, 0, 0); border-block-start-color: rgb(255, 0, 0); border-bottom-color: rgb(255, 0, 0); border-inline-end-color: rgb(255, 0, 0); border-inline-start-color: rgb(255, 0, 0); border-left-color: rgb(255, 0, 0); border-right-color: rgb(255, 0, 0); border-top-color: rgb(255, 0, 0); caret-color: rgb(255, 0, 0); color: rgb(255, 0, 0); column-rule-color: rgb(255, 0, 0); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(255, 0, 0); perspective-origin: 8px 8.5px; text-decoration: none; text-decoration-color: rgb(255, 0, 0); text-emphasis-color: rgb(255, 0, 0); transform-origin: 8px 8.5px; \"\u003eΣ \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 32px 8.5px; transform-origin: 32px 8.5px; \"\u003e1/(2^k) \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(14, 0, 255); border-block-start-color: rgb(14, 0, 255); border-bottom-color: rgb(14, 0, 255); border-inline-end-color: rgb(14, 0, 255); border-inline-start-color: rgb(14, 0, 255); border-left-color: rgb(14, 0, 255); border-right-color: rgb(14, 0, 255); border-top-color: rgb(14, 0, 255); caret-color: rgb(14, 0, 255); color: rgb(14, 0, 255); column-rule-color: rgb(14, 0, 255); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(14, 0, 255); perspective-origin: 16px 8.5px; text-decoration: none; text-decoration-color: rgb(14, 0, 255); text-emphasis-color: rgb(14, 0, 255); transform-origin: 16px 8.5px; \"\u003efor \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 28px 8.5px; transform-origin: 28px 8.5px; \"\u003ek=1...n\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 46.5px 8px; transform-origin: 46.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003efor different n?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = sumOfSeriesVIII(n)\r\ny = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ny_correct = 1/2;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 2;\r\ny_correct = 3/4;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 3;\r\ny_correct = 0.875;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 4;\r\ny_correct = 0.9375;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 5;\r\ny_correct = 0.96875;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 6;\r\ny_correct = 0.984375;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 7;\r\ny_correct = 0.9921875;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))\r\n\r\n%%\r\nn = 10;\r\ny_correct = 0.9990234375;\r\nassert(isequal(sumOfSeriesVIII(n),y_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":2,"created_by":921257,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1254,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2021-03-16T10:19:36.000Z","updated_at":"2026-03-20T08:34:06.000Z","published_at":"2021-03-16T10:19:36.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ y = Σ 1/(2^k) for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":50997,"title":"Sum of series IX","description":"What is the sum of the following sequence:\r\n Σ 1/k! for k=1...n\r\nfor different n?","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 82.4333px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 41.2167px; transform-origin: 407px 41.2167px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 134.5px 8px; transform-origin: 134.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWhat is the sum of the following sequence:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 76px 8.5px; tab-size: 4; transform-origin: 76px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(255, 0, 0); border-block-start-color: rgb(255, 0, 0); border-bottom-color: rgb(255, 0, 0); border-inline-end-color: rgb(255, 0, 0); border-inline-start-color: rgb(255, 0, 0); border-left-color: rgb(255, 0, 0); border-right-color: rgb(255, 0, 0); border-top-color: rgb(255, 0, 0); caret-color: rgb(255, 0, 0); color: rgb(255, 0, 0); column-rule-color: rgb(255, 0, 0); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(255, 0, 0); perspective-origin: 8px 8.5px; text-decoration-color: rgb(255, 0, 0); text-emphasis-color: rgb(255, 0, 0); transform-origin: 8px 8.5px; \"\u003eΣ \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e1/k\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(178, 140, 0); border-block-start-color: rgb(178, 140, 0); border-bottom-color: rgb(178, 140, 0); border-inline-end-color: rgb(178, 140, 0); border-inline-start-color: rgb(178, 140, 0); border-left-color: rgb(178, 140, 0); border-right-color: rgb(178, 140, 0); border-top-color: rgb(178, 140, 0); caret-color: rgb(178, 140, 0); color: rgb(178, 140, 0); column-rule-color: rgb(178, 140, 0); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(178, 140, 0); perspective-origin: 52px 8.5px; text-decoration-color: rgb(178, 140, 0); text-emphasis-color: rgb(178, 140, 0); transform-origin: 52px 8.5px; \"\u003e! for k=1...n\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 46.5px 8px; transform-origin: 46.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003efor different n?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = sumOfSeriesIX(n)\r\ny = n;\r\nend","test_suite":"%%\r\nn = 1;\r\ny_correct = 1;\r\nassert(isequal(sumOfSeriesIX(n),y_correct))\r\n\r\n%%\r\nn = 2;\r\ny_correct = 1.5;\r\nassert(abs(sumOfSeriesIX(n)-y_correct)\u003c1e-6)\r\n\r\n%%\r\nn = 3;\r\ny_correct = 5/3;\r\nassert(abs(sumOfSeriesIX(n)-y_correct)\u003c1e-6)\r\n\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":1,"created_by":921257,"edited_by":223089,"edited_at":"2022-10-03T10:56:04.000Z","deleted_by":null,"deleted_at":null,"solvers_count":1321,"test_suite_updated_at":"2022-10-03T10:56:04.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2021-03-16T10:33:51.000Z","updated_at":"2026-02-24T20:42:34.000Z","published_at":"2021-03-16T10:33:51.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat is the sum of the following sequence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Σ 1/k! for k=1...n]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor different n?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"}],"no_progress_badge":{"id":53,"name":"Unknown","symbol":"unknown","description":"Partially completed groups","description_html":null,"image_location":"/images/responsive/supporting/matlabcentral/cody/badges/problem_groups_unknown_2.png","bonus":null,"players_count":0,"active":false,"created_by":null,"updated_by":null,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"created_at":"2018-01-10T23:20:29.000Z","updated_at":"2018-01-10T23:20:29.000Z","community_badge_id":null,"award_multiples":false}}