The pattern will break down once you get past 8192, which is 2^13. That means that the pattern continues for an impressive 52 significant figures (well, it actually breaks down on the 52nd digit, which will be a 3 instead of a 2).
The reason it works is that 9998 = 10^4 - 2. You can expand as
If you'd like to continue the pattern beyond 52 digits, just keep adding 9s to the original fraction...
1/9999999999998 = 1.0000000000002 0000000000004 0000000000008
0000000000016 0000000000032 0000000000064 0000000000128
0000000000256 0000000000512 0000000001024 0000000002048
0000000004096 0000000008192 0000000016384 0000000032768
0000000065536 0000000131072 00000002621440... × 10^-13
The pattern is not really breaking. What happens is that 16384 doesn't fit in a 4 digit space so it's first digit "1" jumps to 8192 and it becomes 8193. Then the next number (32768) add it's first digit "3" to 16384 and it becomes 16387 and so on, so the sequence appears strange after 4096: ...409681936387...
I agree, but what I took from it is that it continues to be defined by that series even after that point (just in a less recognizable way). It could have just been a remarkable coincidence that it follows that series for so long.
I noticed this on the last bit of wolframs display space also. The fact that it continues and is basically infinite sequence arithmetic overflow is insanely beautiful.
The reason it works is that 9998 = 10^4 - 2. You can expand as
which gives the observed pattern. It breaks down when 2^k has more than n digits, which happens approximately when which comes out to 4 * log(10)/log(2) = 13.28 when n = 4.---
Another pattern can be generated from the power series expansion
setting x = 1/10^n gives the infinite series which leads to the neat fact that ---Another example is the fraction
which goes through the triangle numbers[0] in its expansion, or which goes through the Fibonacci numbers[1].---
Getting the squares is harder, but you can do it with
[0] http://en.wikipedia.org/wiki/Triangle_number[1] http://en.wikipedia.org/wiki/Fibonacci_number