<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perfect numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643584#M192110</link>
    <description>Thank you for response, Sir. But the question is correct. It requires us to get first N (6) perfect numbers. (where the divisors adds upto to the number. the quoted example is 28[1,2,4,7,14])</description>
    <pubDate>Tue, 28 Apr 2020 13:01:28 GMT</pubDate>
    <dc:creator>Sharatm9</dc:creator>
    <dc:date>2020-04-28T13:01:28Z</dc:date>
    <item>
      <title>Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643540#M192083</link>
      <description>&lt;P&gt;Can someone please help me answer this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Write code in SAS that allows one to write to a csv file a data set with all natural numbers less than a given parameter&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="MathJax" style="margin: 0px; padding: 0px; display: inline; font-style: normal; font-weight: normal; line-height: normal; font-size: 16px; text-indent: 0px; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: 0px; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #fdfdfd; text-decoration-style: initial; text-decoration-color: initial; position: relative;"&gt;&lt;SPAN class="math"&gt;&lt;SPAN&gt;&lt;SPAN class="mrow"&gt;&lt;SPAN class="mi"&gt;N&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as well as a boolean variable indicating if the number is perfect or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the CSV must contain &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1, False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2, False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 True&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Im a first time SAS user and I cant seem to go anywhere with this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643540#M192083</guid>
      <dc:creator>Sharatm9</dc:creator>
      <dc:date>2020-04-28T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643545#M192087</link>
      <description>&lt;P&gt;Seems like a very difficult problem for a first-time user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This paper can help:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/3384-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/3384-2015.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643545#M192087</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-28T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643550#M192091</link>
      <description>Yes pretty difficult. Will go through the paper. I think I did come across the paper earlier. Thank you</description>
      <pubDate>Tue, 28 Apr 2020 11:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643550#M192091</guid>
      <dc:creator>Sharatm9</dc:creator>
      <dc:date>2020-04-28T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643580#M192108</link>
      <description>&lt;P&gt;You might want to recheck the statement of the problem. A common programming assignment is to determine whether a number is a perfect &lt;STRONG&gt;square&lt;/STRONG&gt;. That only requires checking whether&lt;/P&gt;
&lt;P&gt;ceil(sqrt(x))**2 = x&lt;/P&gt;
&lt;P&gt;This is much easier than determining whether a number is perfect, which is an abstract property in number theory.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643580#M192108</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-28T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643584#M192110</link>
      <description>Thank you for response, Sir. But the question is correct. It requires us to get first N (6) perfect numbers. (where the divisors adds upto to the number. the quoted example is 28[1,2,4,7,14])</description>
      <pubDate>Tue, 28 Apr 2020 13:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643584#M192110</guid>
      <dc:creator>Sharatm9</dc:creator>
      <dc:date>2020-04-28T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643591#M192113</link>
      <description>&lt;P&gt;Okay. I don't know if your class discussed PROC FCMP, which enables you to define DATA step functions. If so, I recommend that you write an FCMP function that takes a number and computes whether it is perfect by finding the sum of all integer divisors. A short intro to PROC FCMP is at &lt;A href="https://blogs.sas.com/content/iml/2012/04/18/extending-sas-how-to-define-new-functions-in-proc-fcmp-and-sasiml-software.html" target="_self"&gt;"Extending SAS: How to define new functions in PROC FCMP."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643591#M192113</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-28T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643734#M192166</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/325770"&gt;@Sharatm9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for response, Sir. But the question is correct. It requires us to get first N (6) perfect numbers. (where the divisors adds upto to the number. the quoted example is 28[1,2,4,7,14])&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Finding the first 6 of just about anything is likely to be much easier than an arbitrary N as indicated in your first post. So which is it, first 6 or first N?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 22:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643734#M192166</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-28T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643739#M192167</link>
      <description>&lt;P&gt;It the first 6.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 22:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643739#M192167</guid>
      <dc:creator>Sharatm9</dc:creator>
      <dc:date>2020-04-28T22:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Perfect numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643789#M192187</link>
      <description>&lt;P&gt;Given the limitations of SAS, only the first 7 perfect numbers can be calculated with numeric variables anyway (see&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Perfect_number" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Perfect_number&lt;/A&gt; and the continuing link &lt;A href="https://oeis.org/A000396" target="_blank" rel="noopener"&gt;https://oeis.org/A000396&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 07:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perfect-numbers/m-p/643789#M192187</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-29T07:31:11Z</dc:date>
    </item>
  </channel>
</rss>

