<div dir="ltr"><div dir="ltr">Hi Michelle<div>We are looking for the simplest deterministic rule to generate the output from the input.</div><div><br></div><div>This is like those "what's the next number in the sequence" quizzes.  So the following is a rule that can generate a conforming output:</div><div>"take the first number x, move right x times, print it 3 times, increment x, move right x times, print it one fewer times, print "#repeats, list"</div><div>So there are multiple correct answers. But Greg's answer has the advantage that it can be applied to any list of numbers, even  an empty list, and it is built from relationships between numbers, not constants like mine.  He just needs to print ", #repeats, list" at the end of his output. </div><div><br></div><div>It depends on <a href="https://edenpapers.com/blog/inductive-and-deductive-reasoning-and-their-alternatives-essay/">whether one applies</a> </div><div><ul><li>deductive, </li><li>inductive, </li><li>abductive, </li><li>reductive, </li><li>fallacious, </li><li>legal, or </li><li>Trump reasoning (just to kick the discussion off ).  Lives depend on it.</li></ul></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 20, 2020 at 7:24 AM Michelle Wiboltt <<a href="mailto:michellewiboltt@outlook.com">michellewiboltt@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div>
<div>
<div><span id="gmail-m_3873177770877945908ms-outlook-ios-cursor"></span>Couldn’t it be interpreted in a myriad of ways and not just with the repeaters? I mean, in this scenario isn’t it deterministic as to total output? Where’s the choice? Why not every 2nd then every 5th repeater be
 counted or some such thing?</div>
<div><br>
</div>
<div style="direction:ltr">Here’s what I’m thinking...I’m going to the mall (input) once at the mall the output determines that I will visit 5 departments in the mall (as illustrated in example above) but wait...I may visit 3 or 6 or 1 so, it’s determining
 an untrue/not necessarily accurate effect/causal relations, right? </div>
<div><br>
</div>
<div style="direction:ltr">Does this make sense?</div>
<div style="direction:ltr">m</div>
</div>
<div><br>
</div>
<div></div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_3873177770877945908divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Projects <<a href="mailto:projects-bounces@vicpimakers.ca" target="_blank">projects-bounces@vicpimakers.ca</a>> on behalf of Greg H <<a href="mailto:greg.horie@gmail.com" target="_blank">greg.horie@gmail.com</a>><br>
<b>Sent:</b> Tuesday, October 20, 2020 5:52:08 AM<br>
<b>To:</b> Talk about Raspberry Pi / embeded projects <<a href="mailto:projects@vicpimakers.ca" target="_blank">projects@vicpimakers.ca</a>><br>
<b>Subject:</b> Re: [VicPiMakers Projects] Jims challenge in google sheets + a bit of javascript in google apps</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<pre><span style="font-family:arial,sans-serif">> Test Input: 72,111,63,85,61,56,118,121,61,69,63,61</span></pre>
<span style="font-family:arial,sans-serif"></span></div>
<div><span style="font-family:arial,sans-serif">> Output #5: 5,61,61,61,63,63, (#repeats, list)</span></div>
<div><span style="font-family:arial,sans-serif"><br>
</span></div>
<div><span style="font-family:arial,sans-serif">Here's how I interpret this. Given a list of integers, find all the values that repeat. Total the number of repeat values. This total is the first field in the output. Then sort the repeat values and join them
 as a comma-delimited list to the output. <br>
</span></div>
<div><span style="font-family:arial,sans-serif"><br>
</span></div>
<div><span style="font-family:arial,sans-serif">In the example we find that 61 repeats 3 times and 63 repeats 2 times. 3 + 2 = 5.</span></div>
<div><span style="font-family:arial,sans-serif"><br>
</span></div>
<div><span style="font-family:arial,sans-serif">Output Format:  <total>,<comma-delimited list of sorted repeats></span></div>
<div><span style="font-family:arial,sans-serif">Hence:  5,61,61,61,63,63</span></div>
<div><span style="font-family:arial,sans-serif"><br>
</span></div>
<div><span style="font-family:arial,sans-serif">Note - The last comma in the example output is distracting, so I removed it.</span></div>
<div><span style="font-family:arial,sans-serif"><br>
</span></div>
<div><br></div></div></div></div></blockquote></div><div dir="ltr" class="gmail_signature"><div dir="ltr"></div></div></div>