I'm confused. Why is the output infinite? Do we know when the hashing was stopped?
I'm not sure this is a decidable problem with just the information you gave.
Did you just make up the problem, or is that inspired from a real world situation?
I'm not sure this is a decidable problem with just the information you gave.
Did you just make up the problem, or is that inspired from a real world situation?