repeating expansion



Hi,

I'm looking for package/code which can find repeating paterns/ period of 
decimal and binary expansions , like :
http://mathworld.wolfram.com/RepeatingDecimal.html

For example :
33877456965431938318210482471113262183356704085033125021829876006886584214655562
/
237142198758023568227473377297792835283496928595231875152809132048206089502588927

What is the length of :
-decimal exapnsion
- binary expansion ( it should be 267 )

TIA

Adam
http://fraktal.republika.pl/binary_extension.html