Revision history [back]

The database in question is http://oeis.org/A003285 where facts and literature on the subject is collected. Also note two scripts for commercial math software that show that they have generic functions that return the period of any integer sequence.

The database entry in question is http://oeis.org/A003285 is

http://oeis.org/A003285

where facts and literature on the subject is collected. Also note two scripts for commercial math software that show that they have generic functions that return the period of any integer sequence.

The issue (among other things) is addressed in Sage by ticket 14567, after implementation of which you will be able to say:

sage: K.<sqrt11> = QuadraticField(11)
sage: cf = CFF(sqrt11); cf
[3; (3, 6)*]
sage: len(cf.period())
2