The answers posted do not make much sense to me with the same problem. I also got a sequence where numbers repeat themselves, one of the numbers transitions once to another number, and then another time to another number.

I tried to do a transition diagram using JK flip flop, but found for one of the k-maps (so far) it could create two possible outputs depending on to which number we transitioning to. If I go from 1st x to y then K = 1, If I go from 2nd x to h, then K = 0.

I cant possible get a simplified equation from that kmap...

I wanted to use the first idea in that question which was to use an extra bit. But then it means that I'd have 5 flip flops in total, and that my number x for the 1st time, but then, assuming I now have 5 bits here the first bit is 1, I am increasing x by 16, so x+16 will be the output... but I actually need x to be the output, clearly not x +16. I have my output table in the state table as well, and the output should be the result of the present state variables. The max number in my sequence of 7 numbers is 9 (which is why I need 5 bits...)

Again, I never designed a k-map with 5 variables. I think it is possible but I'd have to research and it would really complicate everything if I had 5 variable of course...

Every other answer there I simply do not understand. I am a beginner to electronics.

How would I do this? I was trying to follow these series of videos:

But again it is for no vain.

I cannot specify more about my number because this is coursework.

I really appreciate any feedback I can get. I am sorry if I were not clear enough about what I was talking about when trying to explain my issue. I hope you can spare some time and help me with my issue. It is much appreciated.