(balter:=balanced ternary) Nine trits of even balanced ternary of π: In[329]:= 2 balter@Floor[3^9 π/2] Out[329]= {2, -2, -2, -2, 0, 2, 2, -2, 0, 2, -2} Check: In[330]:= FromDigits[{%, 2}, 3] // N Out[330]= 3.14149265863944 But In[337]:= Sum[4 (-1)^k/(1 - 2 k), {k, 10^4}] // N Out[337]= 3.14149265359004 ! —rwg
Shame about that 5-th digit ... WFL On 4/22/19, Bill Gosper <billgosper@gmail.com> wrote:
(balter:=balanced ternary) Nine trits of even balanced ternary of π: In[329]:= 2 balter@Floor[3^9 π/2]
Out[329]= {2, -2, -2, -2, 0, 2, 2, -2, 0, 2, -2} Check: In[330]:= FromDigits[{%, 2}, 3] // N
Out[330]= 3.14149265863944 But In[337]:= Sum[4 (-1)^k/(1 - 2 k), {k, 10^4}] // N
Out[337]= 3.14149265359004 ! —rwg _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
participants (2)
-
Bill Gosper -
Fred Lunnon