Next Abcaaaabca [index]: 1 2 3 4 5 6 7 8 9 10 [Pattern]: A B C A a a a b c a a a b c a a a b c A [Next]: 0 1 1 1 2 2 2 2 3 4 [NextVal]: 0 1 1 0 2 2 2 1 1 0
[INDEX]: 0 1 2 3 4 5 6 7 8 9 [Pattern]: A B C A a a a b C A [Next]: -1 0 0 0 1 1 1 1 2 3 [NextVal]: -1 0 0 -1 1 1 1 0 0 -1
[INDEX]: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22223 24 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 55 56 57 53 59 65 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 115 111 112 113 119 120 121 122 123 124 125 126 127 128 129 130 131 133 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 154 155 152 157 158 159 160 161 162 163 164 165 166 167 168 169 177 177 177 177 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199202020 215 216 217 218 219 220 221 227 223 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247,248,249,250,251 252,253,254,255,256 257,258,259,260,261 262,263,264,265,266 267,268,269,270,271 272,273,274,275,276 277,278,279,280,281 282,283,284,285,286 287,288,289,290,291 292,293,294,295,296 297 298 293 304 305 302 307 308 309 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 333 337 338 339 340 341 342 343 344 345 346 343 344 345 346 347 348 349 350 351 352 353 354 355 [PATTERN]:
a b c a a a a a a a b c a b c a a a a a a a a a a a a a a a a a a a a a a a a a a b b b b b b a b c A A A A A A A A A A A A A A A A A a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a A a a a a a a a a a a a a a a a a a a a a a a A B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B C C C C C C C C C C C C C C C C C C A c a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a cC F J J H f J H f J H f J H f H J f H f H A B C C C C C C C C C C C C C A A a a a a a a a A A A A A A A A A A A A A A A A A a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a A a a a a a a a a a a
-1 0 0 0 1 1 1 1 1 1 2 3 4 2 3 4 5 6 7 8 9 10 1 1 1 1 1 1 1 1 1 2 0 0 0 0 0 1 2 3 4 5 6 7 8 9 10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [NextVal]: