(In reply to
No Subject by Ady TZIDON)
If
sn=1/81*(10^(1+n)-9n-1)
then, when n=3, for example,
sn = (10^4 - 27 - 1) / 81 = 123.111111111111...
The formula could be changed to either:
sn=[1/81*(10^(1+n)-9n-1)]
where the square brackets indicate the floor function, or
sn=1/81*(10^(1+n)-9n-1) - 1/9
as the excess over an integer is always 1/9.
|
Posted by Charlie
on 2013-02-27 13:27:15 |