r/mathpics • • Oct 14 '26

Mathematical visualization of how every finite state integer mapping function eventually reaches a cycle

[deleted] — view deleted post

78 Upvotes

3 comments sorted by

2

u/opinionated_lurker Oct 15 '26

This reminds me of Yushino, a scrabble-like game that uses numbers instead of letters. Sequences are made by f(n) = (f(n-1) + f(n-2)) mod 10 like fibonacci/lucas numbers. Therefore there are exactly 102=100 states.

I had great fun finding the cycles in that sequence - there are five: all 0's, 0's and 5's, even numbers without 0 (4,2,6,8, repeat), a sequence with odd and even with no 0's (2,1,3,4...), and finally odd and even with 0's (0,1,1,2,3...). The final sequence takes up 60% of the states, and the other 4 combine at 40%.

1

u/kabr Oct 15 '26

Beautiful visualization!

1

u/VIII8 Oct 14 '26

This looks great! Is there a rule how those closures are positioned at the image?