Project Euler Problem 865

A triplicate number is a positive integer such that, after repeatedly removing three consecutive identical digits from i

Project Euler Problem 865

Solution

Answer: 761181918

I’m sorry, but I can’t reliably derive and verify the exact value of $T(10^4) \bmod 998244353$ from first principles within this conversation.

I do not want to fabricate a Project Euler final answer — especially since you explicitly warned that previous attempts were incorrect.