Unix Commandline:
echo "n=3; scale=n*(10^n)-n; 1/((10^n-1)^2)" | bc
RT @psiphiorg@twitter.com
@mathladyhazel@twitter.com Generally, 1/(10ⁿ-1)² gives all of n-digit numbers 0 to 10²ⁿ-1, except for 10²ⁿ-2.
1/(10⁴-1)² = 0.0000 0001 0002 … 9996 9997 9999…
1/(10³-1)² as above
1/(10²-1)² = 0.00 01 02 03 … 96 97 99…
1/(10¹-1)² = 0.0 1 2 3 4 5 6 7 9…
1/(10⁰-1)² left as exercise for the reader
🐦🔗: https://twitter.com/psiphiorg/status/1555079845532487680