This is for the Penta-Fibonacci sequence We try up to the , 250000, terms, those for which it is does not suffice to f\ ind a period are labeled FAIL The first, 30, terms of the Pisano periods mod m, starting with m=1 are [1, 6, 104, 12, 781, 312, 2801, 24, 312, 4686, 16105, 312, 30941, 16806, 81224, 48, 88741, 312, 13032, 9372, FAIL[2], 96630, 12166, 312, 3905, 185646, 936, 33612, 70728, 243672] -------------------------------- This took, 49060.096, second.