Count the coins: Difference between revisions

Content added Content deleted
Line 2,187: Line 2,187:
Additionally, while it's not proved as is, we can see that the first values for an amount 10^k obey the following simple formula:
Additionally, while it's not proved as is, we can see that the first values for an amount 10^k obey the following simple formula:


<lang maple>ways3:=k->4*10^(5*k-9)/3+2*10^(k-3)/3+65*10^(4*k-8)+112*10^(3*k-6)+805*10^(2*k-5)+211*10^(k-3)+1:
<lang maple>ways3:=k->4*10^(5*k-9)/3+65*10^(4*k-8)+112*10^(3*k-6)+805*10^(2*k-5)+635*10^(k-3)/3+1:


for k from 2 to 8 do lprint(ways3(k)) od;
for k from 2 to 8 do lprint(ways3(k)) od;