Write $\bar n$ for the decimal expansion of $n$ (with no leading 0
). Let :
be a symbol distinct from any digit. Let $a$ and $b$ be integers, with $a > 0$. Consider the language of solutions of the Diophantine equation $y=ax+b$:
$$L = \{ \bar{x} \mathtt: \bar{y} \mid y = a\,x + b \}$$
Is $L$ regular? context-free?
(Contrast with Language of the values of an affine function)
(Follows on How can solutions of a Diophantine equation be expressed as a language?)
I think this would make a good homework question, so answers that start with a hint or two and explain not just how to solve the question but also how to decide what techniques to use would be appreciated.