#JavaScript, 48 bytes
Input and output as strings. Returns the nth
term of the sequence.
f=s=>s==(s=s.replace(/(.)\1/g,x=>x[0]*2))?s:f(s)
#JavaScript, 48 bytes
Input and output as strings. Returns the nth
term of the sequence.
f=s=>s==(s=s.replace(/(.)\1/g,x=>x[0]*2))?s:f(s)