{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2025-12-14T01:33:56.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2025-12-14T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":46034,"title":"Construct the Seidel-Entringer-Arnold triangle","description":"Several problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems \u003chttps://www.mathworks.com/matlabcentral/cody/problems/37 37\u003e, \u003chttps://www.mathworks.com/matlabcentral/cody/problems/1463 1463\u003e, \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44037 44037\u003e, and \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44904 44904\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem \u003chttps://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845 1845\u003e extends Pascal's triangle to a pyramid. Cody Problem \u003chttps://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle 45460\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients. \r\n\r\nThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\r\n\r\n  \r\n                         1\r\n                      0      1\r\n                  1      1      0\r\n               0      1      2      2\r\n           5      5      4      2      0\r\n        0      5     10     14     16     16\r\n    61    61     56     46     32     16      0\r\n  0    61    122    178    224    256    272    272   \r\n  \r\nThe name \"secant-tangent triangle\" arises because the sides contain the coefficients in the Taylor series for sec(x) and tan(x):\r\n\r\n sec(x) = 1 + 1x^2/2! + 5x^4/4! + 61x^6/6! + ...\r\n tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\r\n\r\nConstruct the nth layer of this triangle. \r\n\r\nHint: Use the boustrophedon (or ox-plowing) rule. ","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: 510.567px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 255.283px; transform-origin: 407px 255.283px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 84px; 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 42px; text-align: left; transform-origin: 384px 42px; 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: 359.033px 7.8px; transform-origin: 359.033px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eSeveral problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/37\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e37\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e,\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/1463\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"perspective-origin: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; \"\u003e1463\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e,\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/44037\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e44037\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, and\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/44904\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e44904\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 271.55px 7.8px; transform-origin: 271.55px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e1845\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e extends Pascal's triangle to a pyramid. Cody Problem\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e45460\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 191.383px 7.8px; transform-origin: 191.383px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; 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 21px; text-align: left; transform-origin: 384px 21px; 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: 382.033px 7.8px; transform-origin: 382.033px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 163.467px; 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 81.7333px; transform-origin: 404px 81.7333px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 100.1px 8.25px; transform-origin: 100.1px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                         1\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 115.5px 8.25px; transform-origin: 115.5px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                      0      1\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 127.05px 8.25px; transform-origin: 127.05px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                  1      1      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 142.45px 8.25px; transform-origin: 142.45px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e               0      1      2      2\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 154px 8.25px; transform-origin: 154px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e           5      5      4      2      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 169.4px 8.25px; transform-origin: 169.4px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e        0      5     10     14     16     16\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 180.95px 8.25px; transform-origin: 180.95px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    61    61     56     46     32     16      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 196.35px 8.25px; transform-origin: 196.35px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e  0    61    122    178    224    256    272    272\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; 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 21px; text-align: left; transform-origin: 384px 21px; 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: 333.917px 7.8px; transform-origin: 333.917px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe name \"secant-tangent triangle\" arises because the sides contain the coefficients in the Taylor series for \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-5px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAA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JRU5ErkJggg==\" alt=\"sec(x)\" style=\"width: 42px; height: 18.5px;\" width=\"42\" height=\"18.5\"\u003e\u003c/span\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: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-5px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFMAAAAlCAYAAAA+ydXcAAAC2klEQVRoge1ZbZHsIBBsD3GAAQxEQRTEwTqIg1iIhpUQD2thNayFvB/QxSxHQuBgX+6OrkrVXQgw08N8sUBDQ0NDw19EB0AXXK/kWj8KHYAVZQmY7fOnUINIYgawVFj3sngAuFVc/15q/aHEIhUxw5zKmlAAXvjmyR9grHJVKAAbgP4De00wHpAFWuPKZC6ofyoJGm5MndjBWGHDdcnMVu4buCPReBqOyM3+PdlnT3ANE6D5XcztlP1eef9zj+6EnDcrn4p9WBDJe44wSpHMJxxJfjLSdvwBQ2AP43objAUlKQou7nBtDZNANu/x54aw2r1T0FkdQgbv4Ay6hx6Z3kDF9tycMTWUAFb7fva+V2KMhprhLC2NeKQU5TvrcgrORSnzE85gWryPkeXrdQoxMqXi/onlWOjkyHmh2o1KHRHFeJnTncj9exhCn3CncsWxG6cY8W3SEZk88i98dclJjPmQyoTqNp7c0Fx/79jpDUHj3Zgr0gryBzJKpBiZgCHRJ5IudVUyAXf6X0hvFSlfEs6QKTHajRa4JHRVMmnsnGqgKpkjTMxZ8DWRXJVMljgbzpVhEjlVxCkyeQL97FebTMa9XDIpd06ZUyUBkZRQMK5NJuXL6c7oSYybqTEzZ06UzOfB+CfIzMmqbDJ6uLiZ4rL0iOTrONmNHI2HFDoipBSZ7JzOgvcNdGsZNxnr7zi+chyxL/chpFLaCrOIhWRbuMBYe8B7l0ErTgh3OSGhuG6MTJ6SI+V513mz68oiX9abvE2Pue8dGckHVki/Zx4i4y8Y62nvPXttBRceaASZTW/evJg7sYrYg1wrFI6ekXGJDka/7Bv3Hu4mJ1SPydueAe/EDOI9v512nk7s5T9n3G6vvJHyh6Ai4/5eoW7vV2FF/V8Q2b9/8u70v6DI7zMRzLjuJXlxsOSp4YIDTPL61e7to8e5S+UU6Apr/hholI1rTI4NDQ0NDQ3Xxj88OFW1lpjbXAAAAABJRU5ErkJggg==\" alt=\"tan(x)\" style=\"width: 41.5px; height: 18.5px;\" width=\"41.5\" height=\"18.5\"\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 36.05px; 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 18.0333px; text-align: left; transform-origin: 384px 18.0333px; 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: 13.6px 7.8px; transform-origin: 13.6px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e       \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/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rwxlBzSP3yOY//6XGLYQHvEJNIcX+dprnEctrD3BY09YwROdhdCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIcR4/g8VzT2f8bpJAwAAAABJRU5ErkJggg==\" alt=\"sec(x) = 1 + 1x^2/2! + 5x^4/4! + 61x^6/6! + ...\" style=\"width: 226px; height: 36px;\" width=\"226\" height=\"36\"\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 36.05px; 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 18.0333px; text-align: left; transform-origin: 384px 18.0333px; 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: 13.6px 7.8px; transform-origin: 13.6px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e       \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe8AAABICAYAAADf530vAAAN4ElEQVR4nO2dPY7rOhKFTzA7cD6BN2BgYgcvNjC545c4fJk3MHD+Iq/B8UTeQyezgF6Dt9ATyAcusSX+idTv+QDh4rZlSyIpHlaxWASEEEIIIYQQQgghhBBCCCGEEEIIIYTwswdwfB9iPI7OcQJwnvSORBc7/K4rexymuzUhxBbZAXgC+DHHE42Yi7oc0C53Hir7+XFBd13xuEx3a0KILfIEcEMj4jsAdzSd0X3Km9oIdzRlLwtu/nyj2yt1hQZcQoiROaIRD8sOTWf0Nf7tbIo9mnLeTX0jIsgB/VMZX2gG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jrhdrCQE02Fd5jF1RVRnQohinNBYDzyOSOuQgEbALxnf2zJDy53u9zPkgh2bPfKWfKnOhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQuTzf1JZ8O9yuTagAAAAAElFTkSuQmCC\" alt=\"tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\" style=\"width: 247.5px; height: 36px;\" width=\"247.5\" height=\"36\"\u003e\u003c/span\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: 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: 117.85px 7.8px; transform-origin: 117.85px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eConstruct the nth layer of this triangle.\u003c/span\u003e\u003c/span\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: 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: 152.883px 7.8px; transform-origin: 152.883px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eHint: Use the boustrophedon (or ox-plowing) rule.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = SeidelEntringerArnold(n)\r\n  y = f(n);\r\nend","test_suite":"%%\r\nn = 1;\r\ny_correct = 1;\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 3;\r\ny_correct = [1 1 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 5;\r\ny_correct = [5 5 4 2 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 8;\r\ny_correct = [0 61 122 178 224 256 272 272];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%% \r\nn = 13;\r\ny_correct = [2702765 2702765 2652244 2551202 2401024 2204480 1965664 1689872 1383424 1053440 707584 353792 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 10;\r\ny = SeidelEntringerArnold(n);\r\ns = sum(y); \r\nv = round(var(y));\r\nd = y([4 6 9]) - y([2 5 7]);\r\ns_correct = 50521;\r\nv_correct = 8277369;\r\nd_correct = [2709 1024 816];\r\nassert(isequal(s,s_correct) \u0026\u0026 isequal(v,v_correct) \u0026\u0026 isequal(d,d_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":46909,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":24,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-07-07T19:46:14.000Z","updated_at":"2025-12-15T13:25:13.000Z","published_at":"2020-07-08T01:44:59.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\u003eSeveral problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/37\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e37\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e,\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/1463\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e1463\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e,\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44037\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e44037\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, and\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44904\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e44904\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e1845\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e extends Pascal's triangle to a pyramid. Cody Problem\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e45460\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients.\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\u003eThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\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\\n                      0      1\\n                  1      1      0\\n               0      1      2      2\\n           5      5      4      2      0\\n        0      5     10     14     16     16\\n    61    61     56     46     32     16      0\\n  0    61    122    178    224    256    272    272]]\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\u003eThe name \\\"secant-tangent triangle\\\" arises because the sides contain the coefficients in the Taylor series for \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"sec(x)\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\sec(x)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e and \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"tan(x)\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\tan(x)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\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\u003e       \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"sec(x) = 1 + 1x^2/2! + 5x^4/4! + 61x^6/6! + ...\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\sec(x) = 1 + 1\\\\frac{x^2}{2!}+5\\\\frac{x^4}{4!}+61\\\\frac{x^6}{6!}+\\\\ldots\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\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\u003e       \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\tan(x) = 1x + 2\\\\frac{x^3}{3!}+16\\\\frac{x^5}{5!}+272\\\\frac{x^7}{7!}+\\\\ldots\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\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\u003eConstruct the nth layer of this triangle.\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\u003eHint: Use the boustrophedon (or ox-plowing) rule.\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":45210,"title":"another bullseye","description":"create matrix like below --\r\n\r\nfor x=2,\r\n \r\n  y=[1     1     1     1     1;\r\n     1     2     2     2     1;\r\n     1     2     3     2     1;\r\n     1     2     2     2     1;\r\n     1     1     1     1     1]  . \r\nfor x=3, \r\ny=[1     1     1     1     1     1     1     1     1;\r\n     1     2     2     2     2     2     2     2     1;\r\n     1     2     3     3     3     3     3     2     1;\r\n     1     2     3     4     4     4     3     2     1;\r\n     1     2     3     4     5     4     3     2     1;\r\n     1     2     3     4     4     4     3     2     1;\r\n     1     2     3     3     3     3     3     2     1;\r\n     1     2     2     2     2     2     2     2     1;\r\n     1     1     1     1     1     1     1     1     1]\r\n\r\n","description_html":"\u003cp\u003ecreate matrix like below --\u003c/p\u003e\u003cp\u003efor x=2,\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey=[1     1     1     1     1;\r\n   1     2     2     2     1;\r\n   1     2     3     2     1;\r\n   1     2     2     2     1;\r\n   1     1     1     1     1]  . \r\nfor x=3, \r\ny=[1     1     1     1     1     1     1     1     1;\r\n   1     2     2     2     2     2     2     2     1;\r\n   1     2     3     3     3     3     3     2     1;\r\n   1     2     3     4     4     4     3     2     1;\r\n   1     2     3     4     5     4     3     2     1;\r\n   1     2     3     4     4     4     3     2     1;\r\n   1     2     3     3     3     3     3     2     1;\r\n   1     2     2     2     2     2     2     2     1;\r\n   1     1     1     1     1     1     1     1     1]\r\n\u003c/pre\u003e","function_template":"function y = atoll(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 1;\r\nassert(isequal(atoll(x),y_correct))\r\n%%\r\nx = 2;\r\ny_correct =[1 1 1 1 1; 1 2 2 2 1; 1 2 3 2 1; 1 2 2 2 1; 1 1 1 1 1];\r\nassert(isequal(atoll(x),y_correct))\r\n%%\r\nx = 4;\r\ny_correct =[1     1     1     1     1     1     1     1     1     1     1     1     1\r\n     1     2     2     2     2     2     2     2     2     2     2     2     1\r\n     1     2     3     3     3     3     3     3     3     3     3     2     1\r\n     1     2     3     4     4     4     4     4     4     4     3     2     1\r\n     1     2     3     4     5     5     5     5     5     4     3     2     1\r\n     1     2     3     4     5     6     6     6     5     4     3     2     1\r\n     1     2     3     4     5     6     7     6     5     4     3     2     1\r\n     1     2     3     4     5     6     6     6     5     4     3     2     1\r\n     1     2     3     4     5     5     5     5     5     4     3     2     1\r\n     1     2     3     4     4     4     4     4     4     4     3     2     1\r\n     1     2     3     3     3     3     3     3     3     3     3     2     1\r\n     1     2     2     2     2     2     2     2     2     2     2     2     1\r\n     1     1     1     1     1     1     1     1     1     1     1     1     1]\r\nassert(isequal(atoll(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":363598,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":20,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T08:55:35.000Z","updated_at":"2026-01-23T14:37:20.000Z","published_at":"2019-11-21T08:56:19.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\u003ecreate matrix like below --\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 x=2,\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     1     1     1     1;\\n   1     2     2     2     1;\\n   1     2     3     2     1;\\n   1     2     2     2     1;\\n   1     1     1     1     1]  . \\nfor x=3, \\ny=[1     1     1     1     1     1     1     1     1;\\n   1     2     2     2     2     2     2     2     1;\\n   1     2     3     3     3     3     3     2     1;\\n   1     2     3     4     4     4     3     2     1;\\n   1     2     3     4     5     4     3     2     1;\\n   1     2     3     4     4     4     3     2     1;\\n   1     2     3     3     3     3     3     2     1;\\n   1     2     2     2     2     2     2     2     1;\\n   1     1     1     1     1     1     1     1     1]]]\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":45400,"title":"Fault in our Stars - 01","description":"Create a ladder pattern with n-steps and b-width.\r\n\r\nFor example,\r\n\r\n For n=2, b=5 -- the ladder would look like -\r\n \r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n","description_html":"\u003cp\u003eCreate a ladder pattern with n-steps and b-width.\u003c/p\u003e\u003cp\u003eFor example,\u003c/p\u003e\u003cpre\u003e For n=2, b=5 -- the ladder would look like -\u003c/pre\u003e\u003cpre\u003e    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\u003c/pre\u003e","function_template":"function y = ladder_mat(n,b)","test_suite":"%%\r\ny=[ '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'];\r\nassert(isequal(ladder_mat(2,5),y))\r\n\r\n%%\r\ny=[ '*             *'\r\n    '*             *'\r\n    '***************'\r\n    '*             *'\r\n    '*             *'];\r\nassert(isequal(ladder_mat(1,15),y))\r\n\r\n%%\r\ny=[ '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n];\r\nassert(isequal(ladder_mat(5,4),y))\r\n\r\n%%\r\ny=[ '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'];\r\nassert(isequal(ladder_mat(6,6),y))\r\n%%\r\ny=[ '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *']\r\nassert(isequal(ladder_mat(3,3),y))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":363598,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-03-30T00:55:22.000Z","updated_at":"2026-01-29T13:54:49.000Z","published_at":"2020-03-30T00:55:22.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\u003eCreate a ladder pattern with n-steps and b-width.\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 example,\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[ For n=2, b=5 -- the ladder would look like -\\n\\n    '*   *'\\n    '*   *'\\n    '*****'\\n    '*   *'\\n    '*   *'\\n    '*****'\\n    '*   *'\\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":44904,"title":"Pascal's Equilateral triangle inside a Matrix!!!","description":"Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\r\n\r\nnumber of row, n = 5\r\n\r\np =\r\n\r\n     0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1\r\n\r\n","description_html":"\u003cp\u003eGiven a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\u003c/p\u003e\u003cp\u003enumber of row, n = 5\u003c/p\u003e\u003cp\u003ep =\u003c/p\u003e\u003cpre\u003e     0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct =      [0     0     1     0     0\r\n     0     1     0     1     0\r\n     1     0     2     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 5;\r\ny_correct =      [0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 7;\r\ny_correct =      [0     0     0     0     0     0     1     0     0     0     0     0     0\r\n     0     0     0     0     0     1     0     1     0     0     0     0     0\r\n     0     0     0     0     1     0     2     0     1     0     0     0     0\r\n     0     0     0     1     0     3     0     3     0     1     0     0     0\r\n     0     0     1     0     4     0     6     0     4     0     1     0     0\r\n     0     1     0     5     0    10     0    10     0     5     0     1     0\r\n     1     0     6     0    15     0    20     0    15     0     6     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":311094,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-05-19T22:16:28.000Z","updated_at":"2026-01-30T13:11:40.000Z","published_at":"2019-05-19T22:16:28.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\u003eGiven a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\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\u003enumber of row, n = 5\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\u003ep =\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[     0     0     0     0     1     0     0     0     0\\n     0     0     0     1     0     1     0     0     0\\n     0     0     1     0     2     0     1     0     0\\n     0     1     0     3     0     3     0     1     0\\n     1     0     4     0     6     0     4     0     1]]\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\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":46034,"title":"Construct the Seidel-Entringer-Arnold triangle","description":"Several problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems \u003chttps://www.mathworks.com/matlabcentral/cody/problems/37 37\u003e, \u003chttps://www.mathworks.com/matlabcentral/cody/problems/1463 1463\u003e, \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44037 44037\u003e, and \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44904 44904\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem \u003chttps://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845 1845\u003e extends Pascal's triangle to a pyramid. Cody Problem \u003chttps://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle 45460\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients. \r\n\r\nThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\r\n\r\n  \r\n                         1\r\n                      0      1\r\n                  1      1      0\r\n               0      1      2      2\r\n           5      5      4      2      0\r\n        0      5     10     14     16     16\r\n    61    61     56     46     32     16      0\r\n  0    61    122    178    224    256    272    272   \r\n  \r\nThe name \"secant-tangent triangle\" arises because the sides contain the coefficients in the Taylor series for sec(x) and tan(x):\r\n\r\n sec(x) = 1 + 1x^2/2! + 5x^4/4! + 61x^6/6! + ...\r\n tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\r\n\r\nConstruct the nth layer of this triangle. \r\n\r\nHint: Use the boustrophedon (or ox-plowing) rule. ","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: 510.567px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 255.283px; transform-origin: 407px 255.283px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 84px; 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 42px; text-align: left; transform-origin: 384px 42px; 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: 359.033px 7.8px; transform-origin: 359.033px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eSeveral problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/37\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e37\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e,\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/1463\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"perspective-origin: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; \"\u003e1463\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e,\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/44037\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e44037\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, and\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/44904\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e44904\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 271.55px 7.8px; transform-origin: 271.55px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e1845\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e extends Pascal's triangle to a pyramid. Cody Problem\u003c/span\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003e45460\u003c/span\u003e\u003c/span\u003e\u003c/a\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: 191.383px 7.8px; transform-origin: 191.383px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; 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 21px; text-align: left; transform-origin: 384px 21px; 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: 382.033px 7.8px; transform-origin: 382.033px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 163.467px; 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 81.7333px; transform-origin: 404px 81.7333px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 100.1px 8.25px; transform-origin: 100.1px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                         1\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 115.5px 8.25px; transform-origin: 115.5px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                      0      1\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 127.05px 8.25px; transform-origin: 127.05px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e                  1      1      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 142.45px 8.25px; transform-origin: 142.45px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e               0      1      2      2\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 154px 8.25px; transform-origin: 154px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e           5      5      4      2      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 169.4px 8.25px; transform-origin: 169.4px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e        0      5     10     14     16     16\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 180.95px 8.25px; transform-origin: 180.95px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    61    61     56     46     32     16      0\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; 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: 0.916667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.916667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.916667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.916667px; 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; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; 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: 196.35px 8.25px; transform-origin: 196.35px 8.25px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e  0    61    122    178    224    256    272    272\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; 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 21px; text-align: left; transform-origin: 384px 21px; 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: 333.917px 7.8px; transform-origin: 333.917px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe name \"secant-tangent triangle\" arises because the sides contain the coefficients in the Taylor series for \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-5px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAlCAYAAADcFc6lAAADFklEQVRoge1aW5XDIBC9HnAQAzEQBVUQB3EQB7EQDZUQD7UQDbHQ/YC7mbIwhSbpa7nn8LGlDDOXYR50gYKCgoKCghXNjrLqHWV9JEYA7Y7yWgBnAGZHmR+DvckkTgAu+GekDrCedBS6g+W/FU4AFhzvQRdYYr8eM4D+Cfs0sAdXPWGvl6HFc7yTmGFj9dfi2QZ22HCAFawH9G6cnCCtNjOBNSmoxZoOadeqBnDFMZl99z1bt7CDjR0n2Cx3RTzb9W5+cmMRf8cOoXbzM2ym7sW6EboncL/cmFbD2hWKu437XGsOqFsyKrdoCMxNCBM6ujWSuBq3pPrkcH7w5k5ujXZ41OWqzPvonbyLkC+z9ig+1+rOyc0no3NCYyfoG0kCQiXFgLDyBpbMmOI8iEXRc0amYd7ePGjA2jphvYla1ZB7kL9XaUb4qvqb8cRDV096mzSee8QUb2EV1wyThOSC4Wt2Os5ITzR0kuTExMDLDbUAzPCwYE0qcshrJL2NHrLl8WELobyFmuPEQGfIeoSRV5XeFRLQiu+ECPUHsB7CKwmVTpNbdj1EqFwoh595+R0t1vlo8HpCgfWWhJKvhkerC8AtYhDmkBlbkp66gSR0S2+8YJuHktA5c212Umrwl5wGt+UGr6+MRfeK3crJMbg9HA014l7MWjcXBtYWaU+Ot7FuTkaPMDnGCZL1oYxF994Mz1g7J2lMrJui4TGZ2dnWYXS6SN1zOp8FmU95rMlic37ckSEhVMAbWCOkTJnMQgZVsGRqZRNLspzk0OLWu2RXBliStdqWCTUrVJG0kOeQvFhHxATFNnJwf4eevfzYPGNtW1MTDveKga3tiLWtlXrIepRka4mSIS4rIclEw76WHdKCMNE11nDgjymigBEG+aNH2lUeocczacuCv97c3pn3EWu9VVSwxhhY8vzXJg18XGAcTimLKqyPFS3yTp9XUIvDlB2T296Z9/fa81fVt0SPx3r6XJzx5Y/LEkf/3pPb7388WNId8Y8J1YGy3xrs6vY03Bwg86NgsO8voKk/xxQUFBQUFLwffgACyToaJYQUAAAAAABJRU5ErkJggg==\" alt=\"sec(x)\" style=\"width: 42px; height: 18.5px;\" width=\"42\" height=\"18.5\"\u003e\u003c/span\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: 15.5667px 7.8px; transform-origin: 15.5667px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-5px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFMAAAAlCAYAAAA+ydXcAAAC2klEQVRoge1ZbZHsIBBsD3GAAQxEQRTEwTqIg1iIhpUQD2thNayFvB/QxSxHQuBgX+6OrkrVXQgw08N8sUBDQ0NDw19EB0AXXK/kWj8KHYAVZQmY7fOnUINIYgawVFj3sngAuFVc/15q/aHEIhUxw5zKmlAAXvjmyR9grHJVKAAbgP4De00wHpAFWuPKZC6ofyoJGm5MndjBWGHDdcnMVu4buCPReBqOyM3+PdlnT3ANE6D5XcztlP1eef9zj+6EnDcrn4p9WBDJe44wSpHMJxxJfjLSdvwBQ2AP43objAUlKQou7nBtDZNANu/x54aw2r1T0FkdQgbv4Ay6hx6Z3kDF9tycMTWUAFb7fva+V2KMhprhLC2NeKQU5TvrcgrORSnzE85gWryPkeXrdQoxMqXi/onlWOjkyHmh2o1KHRHFeJnTncj9exhCn3CncsWxG6cY8W3SEZk88i98dclJjPmQyoTqNp7c0Fx/79jpDUHj3Zgr0gryBzJKpBiZgCHRJ5IudVUyAXf6X0hvFSlfEs6QKTHajRa4JHRVMmnsnGqgKpkjTMxZ8DWRXJVMljgbzpVhEjlVxCkyeQL97FebTMa9XDIpd06ZUyUBkZRQMK5NJuXL6c7oSYybqTEzZ06UzOfB+CfIzMmqbDJ6uLiZ4rL0iOTrONmNHI2HFDoipBSZ7JzOgvcNdGsZNxnr7zi+chyxL/chpFLaCrOIhWRbuMBYe8B7l0ErTgh3OSGhuG6MTJ6SI+V513mz68oiX9abvE2Pue8dGckHVki/Zx4i4y8Y62nvPXttBRceaASZTW/evJg7sYrYg1wrFI6ekXGJDka/7Bv3Hu4mJ1SPydueAe/EDOI9v512nk7s5T9n3G6vvJHyh6Ai4/5eoW7vV2FF/V8Q2b9/8u70v6DI7zMRzLjuJXlxsOSp4YIDTPL61e7to8e5S+UU6Apr/hholI1rTI4NDQ0NDQ3Xxj88OFW1lpjbXAAAAABJRU5ErkJggg==\" alt=\"tan(x)\" style=\"width: 41.5px; height: 18.5px;\" width=\"41.5\" height=\"18.5\"\u003e\u003c/span\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: 1.95px 7.8px; transform-origin: 1.95px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 36.05px; 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 18.0333px; text-align: left; transform-origin: 384px 18.0333px; 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: 13.6px 7.8px; transform-origin: 13.6px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e       \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcQAAABICAYAAABoWoUIAAAMsklEQVR4nO2dsZHzOBKFn3HOGWfJO1MJKAFFoAiUwWSgDJTBlWJQBFfjr7HGOBeA3HNlnjtnUG/ZpAAQIAFSJN5Xxdr9RxwN2QT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2! + 5x^4/4! + 61x^6/6! + ...\" style=\"width: 226px; height: 36px;\" width=\"226\" height=\"36\"\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 36.05px; 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 18.0333px; text-align: left; transform-origin: 384px 18.0333px; 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: 13.6px 7.8px; transform-origin: 13.6px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e       \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe8AAABICAYAAADf530vAAAN4ElEQVR4nO2dPY7rOhKFTzA7cD6BN2BgYgcvNjC545c4fJk3MHD+Iq/B8UTeQyezgF6Dt9ATyAcusSX+idTv+QDh4rZlSyIpHlaxWASEEEIIIYQQQgghhBBCCCGEEEIIIYTwswdwfB9iPI7OcQJwnvSORBc7/K4rexymuzUhxBbZAXgC+DHHE42Yi7oc0C53Hir7+XFBd13xuEx3a0KILfIEcEMj4jsAdzSd0X3Km9oIdzRlLwtu/nyj2yt1hQZcQoiROaIRD8sOTWf0Nf7tbIo9mnLeTX0jIsgB/VMZX2gGwEIIMTk/+C3qoiw3fKYorpDFvUQ4ALtOfSNCCHFG4yKURViXb/yeN71C5b4kOA+ugZcQYlJOAF5oOiWJyDic0A4YlBW3HJ5oBmFCCDEJOzRuXGsNym0+Lmc05f6CBk5LgLEhGmwJIWaBXRIjERmXB5pyP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C\" alt=\"tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\" style=\"width: 247.5px; height: 36px;\" width=\"247.5\" height=\"36\"\u003e\u003c/span\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: 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: 117.85px 7.8px; transform-origin: 117.85px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eConstruct the nth layer of this triangle.\u003c/span\u003e\u003c/span\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: 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: 152.883px 7.8px; transform-origin: 152.883px 7.8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eHint: Use the boustrophedon (or ox-plowing) rule.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = SeidelEntringerArnold(n)\r\n  y = f(n);\r\nend","test_suite":"%%\r\nn = 1;\r\ny_correct = 1;\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 3;\r\ny_correct = [1 1 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 5;\r\ny_correct = [5 5 4 2 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 8;\r\ny_correct = [0 61 122 178 224 256 272 272];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%% \r\nn = 13;\r\ny_correct = [2702765 2702765 2652244 2551202 2401024 2204480 1965664 1689872 1383424 1053440 707584 353792 0];\r\nassert(isequal(SeidelEntringerArnold(n),y_correct))\r\n\r\n%%\r\nn = 10;\r\ny = SeidelEntringerArnold(n);\r\ns = sum(y); \r\nv = round(var(y));\r\nd = y([4 6 9]) - y([2 5 7]);\r\ns_correct = 50521;\r\nv_correct = 8277369;\r\nd_correct = [2709 1024 816];\r\nassert(isequal(s,s_correct) \u0026\u0026 isequal(v,v_correct) \u0026\u0026 isequal(d,d_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":46909,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":24,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-07-07T19:46:14.000Z","updated_at":"2025-12-15T13:25:13.000Z","published_at":"2020-07-08T01:44:59.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\u003eSeveral problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/37\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e37\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e,\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/1463\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e1463\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e,\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44037\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e44037\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, and\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44904\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e44904\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e involve Pascal's triangle, which consists of the binomial coefficients, and Cody Problem\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/groups/31/problems/1845\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e1845\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e extends Pascal's triangle to a pyramid. Cody Problem\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/45423-bernoulli-s-triangle\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e45460\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e involves the Bernoulli triangle, which consists of partial sums of the binomial coefficients.\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\u003eThis problem deals with the Seidel-Entringer-Arnold triangle (also called the Euler-Bernoulli triangle and the secant-tangent triangle). The first eight layers are\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\\n                      0      1\\n                  1      1      0\\n               0      1      2      2\\n           5      5      4      2      0\\n        0      5     10     14     16     16\\n    61    61     56     46     32     16      0\\n  0    61    122    178    224    256    272    272]]\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\u003eThe name \\\"secant-tangent triangle\\\" arises because the sides contain the coefficients in the Taylor series for \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"sec(x)\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\sec(x)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e and \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"tan(x)\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\tan(x)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\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\u003e       \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"sec(x) = 1 + 1x^2/2! + 5x^4/4! + 61x^6/6! + ...\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\sec(x) = 1 + 1\\\\frac{x^2}{2!}+5\\\\frac{x^4}{4!}+61\\\\frac{x^6}{6!}+\\\\ldots\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\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\u003e       \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003cw:attr w:name=\\\"altTextString\\\" w:val=\\\"tan(x) = 1x + 2x^3/3! + 16x^5/5! + 272x^7/7! + ...\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\tan(x) = 1x + 2\\\\frac{x^3}{3!}+16\\\\frac{x^5}{5!}+272\\\\frac{x^7}{7!}+\\\\ldots\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\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\u003eConstruct the nth layer of this triangle.\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\u003eHint: Use the boustrophedon (or ox-plowing) rule.\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":45210,"title":"another bullseye","description":"create matrix like below --\r\n\r\nfor x=2,\r\n \r\n  y=[1     1     1     1     1;\r\n     1     2     2     2     1;\r\n     1     2     3     2     1;\r\n     1     2     2     2     1;\r\n     1     1     1     1     1]  . \r\nfor x=3, \r\ny=[1     1     1     1     1     1     1     1     1;\r\n     1     2     2     2     2     2     2     2     1;\r\n     1     2     3     3     3     3     3     2     1;\r\n     1     2     3     4     4     4     3     2     1;\r\n     1     2     3     4     5     4     3     2     1;\r\n     1     2     3     4     4     4     3     2     1;\r\n     1     2     3     3     3     3     3     2     1;\r\n     1     2     2     2     2     2     2     2     1;\r\n     1     1     1     1     1     1     1     1     1]\r\n\r\n","description_html":"\u003cp\u003ecreate matrix like below --\u003c/p\u003e\u003cp\u003efor x=2,\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey=[1     1     1     1     1;\r\n   1     2     2     2     1;\r\n   1     2     3     2     1;\r\n   1     2     2     2     1;\r\n   1     1     1     1     1]  . \r\nfor x=3, \r\ny=[1     1     1     1     1     1     1     1     1;\r\n   1     2     2     2     2     2     2     2     1;\r\n   1     2     3     3     3     3     3     2     1;\r\n   1     2     3     4     4     4     3     2     1;\r\n   1     2     3     4     5     4     3     2     1;\r\n   1     2     3     4     4     4     3     2     1;\r\n   1     2     3     3     3     3     3     2     1;\r\n   1     2     2     2     2     2     2     2     1;\r\n   1     1     1     1     1     1     1     1     1]\r\n\u003c/pre\u003e","function_template":"function y = atoll(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 1;\r\nassert(isequal(atoll(x),y_correct))\r\n%%\r\nx = 2;\r\ny_correct =[1 1 1 1 1; 1 2 2 2 1; 1 2 3 2 1; 1 2 2 2 1; 1 1 1 1 1];\r\nassert(isequal(atoll(x),y_correct))\r\n%%\r\nx = 4;\r\ny_correct =[1     1     1     1     1     1     1     1     1     1     1     1     1\r\n     1     2     2     2     2     2     2     2     2     2     2     2     1\r\n     1     2     3     3     3     3     3     3     3     3     3     2     1\r\n     1     2     3     4     4     4     4     4     4     4     3     2     1\r\n     1     2     3     4     5     5     5     5     5     4     3     2     1\r\n     1     2     3     4     5     6     6     6     5     4     3     2     1\r\n     1     2     3     4     5     6     7     6     5     4     3     2     1\r\n     1     2     3     4     5     6     6     6     5     4     3     2     1\r\n     1     2     3     4     5     5     5     5     5     4     3     2     1\r\n     1     2     3     4     4     4     4     4     4     4     3     2     1\r\n     1     2     3     3     3     3     3     3     3     3     3     2     1\r\n     1     2     2     2     2     2     2     2     2     2     2     2     1\r\n     1     1     1     1     1     1     1     1     1     1     1     1     1]\r\nassert(isequal(atoll(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":363598,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":20,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T08:55:35.000Z","updated_at":"2026-01-23T14:37:20.000Z","published_at":"2019-11-21T08:56:19.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\u003ecreate matrix like below --\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 x=2,\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     1     1     1     1;\\n   1     2     2     2     1;\\n   1     2     3     2     1;\\n   1     2     2     2     1;\\n   1     1     1     1     1]  . \\nfor x=3, \\ny=[1     1     1     1     1     1     1     1     1;\\n   1     2     2     2     2     2     2     2     1;\\n   1     2     3     3     3     3     3     2     1;\\n   1     2     3     4     4     4     3     2     1;\\n   1     2     3     4     5     4     3     2     1;\\n   1     2     3     4     4     4     3     2     1;\\n   1     2     3     3     3     3     3     2     1;\\n   1     2     2     2     2     2     2     2     1;\\n   1     1     1     1     1     1     1     1     1]]]\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":45400,"title":"Fault in our Stars - 01","description":"Create a ladder pattern with n-steps and b-width.\r\n\r\nFor example,\r\n\r\n For n=2, b=5 -- the ladder would look like -\r\n \r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n","description_html":"\u003cp\u003eCreate a ladder pattern with n-steps and b-width.\u003c/p\u003e\u003cp\u003eFor example,\u003c/p\u003e\u003cpre\u003e For n=2, b=5 -- the ladder would look like -\u003c/pre\u003e\u003cpre\u003e    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\u003c/pre\u003e","function_template":"function y = ladder_mat(n,b)","test_suite":"%%\r\ny=[ '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'\r\n    '*****'\r\n    '*   *'\r\n    '*   *'];\r\nassert(isequal(ladder_mat(2,5),y))\r\n\r\n%%\r\ny=[ '*             *'\r\n    '*             *'\r\n    '***************'\r\n    '*             *'\r\n    '*             *'];\r\nassert(isequal(ladder_mat(1,15),y))\r\n\r\n%%\r\ny=[ '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n    '****'\r\n    '*  *'\r\n    '*  *'\r\n];\r\nassert(isequal(ladder_mat(5,4),y))\r\n\r\n%%\r\ny=[ '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'\r\n    '******'\r\n    '*    *'\r\n    '*    *'];\r\nassert(isequal(ladder_mat(6,6),y))\r\n%%\r\ny=[ '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *'\r\n    '***'\r\n    '* *'\r\n    '* *']\r\nassert(isequal(ladder_mat(3,3),y))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":363598,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-03-30T00:55:22.000Z","updated_at":"2026-01-29T13:54:49.000Z","published_at":"2020-03-30T00:55:22.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\u003eCreate a ladder pattern with n-steps and b-width.\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 example,\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[ For n=2, b=5 -- the ladder would look like -\\n\\n    '*   *'\\n    '*   *'\\n    '*****'\\n    '*   *'\\n    '*   *'\\n    '*****'\\n    '*   *'\\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":44904,"title":"Pascal's Equilateral triangle inside a Matrix!!!","description":"Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\r\n\r\nnumber of row, n = 5\r\n\r\np =\r\n\r\n     0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1\r\n\r\n","description_html":"\u003cp\u003eGiven a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\u003c/p\u003e\u003cp\u003enumber of row, n = 5\u003c/p\u003e\u003cp\u003ep =\u003c/p\u003e\u003cpre\u003e     0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct =      [0     0     1     0     0\r\n     0     1     0     1     0\r\n     1     0     2     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 5;\r\ny_correct =      [0     0     0     0     1     0     0     0     0\r\n     0     0     0     1     0     1     0     0     0\r\n     0     0     1     0     2     0     1     0     0\r\n     0     1     0     3     0     3     0     1     0\r\n     1     0     4     0     6     0     4     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 7;\r\ny_correct =      [0     0     0     0     0     0     1     0     0     0     0     0     0\r\n     0     0     0     0     0     1     0     1     0     0     0     0     0\r\n     0     0     0     0     1     0     2     0     1     0     0     0     0\r\n     0     0     0     1     0     3     0     3     0     1     0     0     0\r\n     0     0     1     0     4     0     6     0     4     0     1     0     0\r\n     0     1     0     5     0    10     0    10     0     5     0     1     0\r\n     1     0     6     0    15     0    20     0    15     0     6     0     1];\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":311094,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-05-19T22:16:28.000Z","updated_at":"2026-01-30T13:11:40.000Z","published_at":"2019-05-19T22:16:28.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\u003eGiven a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'.\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\u003enumber of row, n = 5\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\u003ep =\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[     0     0     0     0     1     0     0     0     0\\n     0     0     0     1     0     1     0     0     0\\n     0     0     1     0     2     0     1     0     0\\n     0     1     0     3     0     3     0     1     0\\n     1     0     4     0     6     0     4     0     1]]\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\"}]}"}],"term":"tag:\"matrix pattern\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"matrix pattern\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"matrix pattern\"","","\"","matrix pattern","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f10517d3990\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f10517d38f0\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f10517d3030\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f10517d3c10\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f10517d3b70\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f10517d3ad0\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f10517d3a30\u003e":"tag:\"matrix pattern\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f10517d3a30\u003e":"tag:\"matrix pattern\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"search","password":"J3bGPZzQ7asjJcCk","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"matrix pattern\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"matrix pattern\"","","\"","matrix pattern","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f10517d3990\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f10517d38f0\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f10517d3030\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f10517d3c10\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f10517d3b70\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f10517d3ad0\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f10517d3a30\u003e":"tag:\"matrix pattern\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f10517d3a30\u003e":"tag:\"matrix pattern\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":46034,"difficulty_rating":"easy-medium"},{"id":45210,"difficulty_rating":"easy-medium"},{"id":45400,"difficulty_rating":"easy-medium"},{"id":44904,"difficulty_rating":"easy-medium"}]}}