A349951 Similar to the "Look and Say" sequence, with the added requirement that every third digit describes the location of a digit in blocks of three in the previous term.
1, 111, 311, 131211, 111131111122212, 311112132112313114224125115125, 131211212122113133123214124135115135216146227147118128158219159111012101510
Offset: 1
Examples
a(1) is read as "one one in the first block", so a(2) is 111. a(2) is read as "three ones in the first block", so a(3) is 311. a(3) is read as "one three in the first block, two ones in the first block", so a(4) is 131211. a(4) is read as "one one in the first block, one three in the first block, one one in the first block, one two in the second block, two ones in the second block", so a(5) is 111131111122212.
Crossrefs
Cf. A005150.
Programs
-
Mathematica
{1}~Join~NestList[(s=Split/@Partition[IntegerDigits[#],3];FromDigits@Flatten@Table[Join[Reverse@#,IntegerDigits[k]]&/@({First@#,Length@#}&/@#&/@s)[[k]],{k,Length@s}])&,111,5] (* Giorgos Kalogeropoulos, Dec 08 2021 *)
Comments