<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Иван</title>
    <description>The latest articles on DEV Community by Иван (@vova2kms).</description>
    <link>https://dev.to/vova2kms</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F806361%2Ffed032d0-e551-4c68-b095-73be262033ac.jpg</url>
      <title>DEV Community: Иван</title>
      <link>https://dev.to/vova2kms</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vova2kms"/>
    <language>en</language>
    <item>
      <title>Triangle of even numbers</title>
      <dc:creator>Иван</dc:creator>
      <pubDate>Fri, 04 Feb 2022 21:28:55 +0000</pubDate>
      <link>https://dev.to/vova2kms/triangle-of-even-numbers-1j0</link>
      <guid>https://dev.to/vova2kms/triangle-of-even-numbers-1j0</guid>
      <description>&lt;p&gt;I invite you to consider the issue.&lt;br&gt;
Consider a number series consisting of even numbers.&lt;br&gt;
Let's decompose sequentially even numbers in a triangle, starting from 0 at the top and on each new line we will add one element.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;           0&lt;/li&gt;
&lt;li&gt;         2   4&lt;/li&gt;
&lt;li&gt;      6    8  10&lt;/li&gt;
&lt;li&gt;    12  14  16  18&lt;/li&gt;
&lt;li&gt;  20  22  24  26  28
n.  ...
n+1.     ......  And so on ad infinitum&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I think the layout is clear.&lt;br&gt;
The question is as follows.&lt;br&gt;
It is required to find the sum of the specified string and all elements of .&lt;/p&gt;

&lt;p&gt;For instance:&lt;br&gt;
    Given: the number X is the row number&lt;br&gt;
     Find:&lt;br&gt;
       1) all elements from this row&lt;br&gt;
       2) the sum of these elements&lt;/p&gt;

&lt;p&gt;Bonus:&lt;br&gt;
 Given: the number A is a random number from 0 to infinity&lt;br&gt;
  Find:&lt;br&gt;
   1) check if the number is even&lt;br&gt;
   2) if the given number is even then find &lt;br&gt;
       on which line this number is located &lt;/p&gt;

&lt;p&gt;Here is such a problem for warming up the brain.&lt;/p&gt;

&lt;p&gt;I would be glad to hear your opinion, and it is interesting to see interesting solutions.&lt;/p&gt;

&lt;p&gt;Sincerely yours &lt;a class="mentioned-user" href="https://dev.to/vova2kms"&gt;@vova2kms&lt;/a&gt; &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
