Nah, there's an end to that loop and you haven't reached the true ending. You're supposed to brute force it and memorize the sequence. Then the game changes the sequence again and you have to solve it again.
Just putting this in the comments in case someone else gets stuck