User lshamis - MathOverflowmost recent 30 from http://mathoverflow.net2013-05-19T01:40:57Zhttp://mathoverflow.net/feeds/user/13316http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/61449/recovering-a-set-of-discrete-valuesRecovering a set of discrete valueslshamis2011-04-12T19:24:45Z2011-04-12T19:24:45Z
<p>I have a set of <em>positive</em> integers $a$, where $\displaystyle\sum_i{a_i}=700$ and $\displaystyle\sum_i{a_i^2}=1212$.</p>
<p>Is there a unique decomposition of $a$ and, if so, how do I recover it?</p>
http://mathoverflow.net/questions/56966/approximating-e-with-2s-and-3sApproximating e with 2s and 3slshamis2011-03-01T05:28:12Z2011-03-03T18:31:46Z
<p>How can I generate a series of 2s and 3s such that the average of the generated values (so far) is as close to e as possible?</p>
<p>For example:</p>
<pre><code>3: avg=3 |2-e| =0.282
3,2: avg=2.5 |2.5-e| =0.218
3,2,3: avg=2.667 |2.667-e|=0.052
3,2,3,3: avg=2.75 |2.75-e| =0.032
</code></pre>
<p>Also, how can I <em>quickly</em> check if the nth index in the sequence is a 2 or 3?</p>