Talk:Amicable pairs: Difference between revisions

m
added a comment, corrected ending tag for an HTML comment.
m (added a comment, corrected ending tag for an HTML comment.)
Line 72:
:::: The   '''do'''   loop mentioned above (as used in the REXX program), like you said, generates values of   '''x'''   in a sorted order, but does not do any sorting of data (amicable numbers).   However, what the   '''do'''   loop does, in reality, is generating values for   '''x'''   in numerical order, where   '''y'''   is coupled to the value of   '''x'''   (where   '''x''' is the first part of the amicable pair, and   '''y'''   is the second part).   However, the   '''sigma'''   of   '''x'''   most likely isn't known at this time, so the value of   '''x'''   isn't displayed until the   '''sigma'''   of   '''y'''   is computed, thus, the values of   '''x'''   are shown out of order, even though one would think that the values of   '''x'''   should appear in numerical order.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:58, 7 October 2015 (UTC)
 
<!-- Like baseball, the runner on 1st can't run to 2nd until the runner on 2nd advances to 3rd. Apologies for the similarity to the Abbot and Costello routine. --!>
 
::::: Ok. Are you suggesting that one or more of the rexx implementations would discover the y values "out of order"? --~~~~[[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:38, 7 October 2015 (UTC)
 
:::::: No, not at all. &nbsp; In fact, all of the REXX versions that I entered show the &nbsp; '''y''' &nbsp; values in order. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:38, 7 October 2015 (UTC)