A284395 Positions of 1 in A284394.
2, 8, 17, 23, 32, 41, 47, 56, 62, 71, 80, 86, 95, 104, 110, 119, 125, 134, 143, 149, 158, 164, 173, 182, 188, 197, 206, 212, 221, 227, 236, 245, 251, 260, 269, 275, 284, 290, 299, 308, 314, 323, 329, 338, 347, 353, 362, 371, 377, 386, 392, 401, 410, 416, 425
Offset: 1
Examples
As a word, A284394 = 01002001002002001..., in which the positions of 1 are 2,8,17,...
Links
- Clark Kimberling, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}] &, {0}, 13] (* A003849 *) w = StringJoin[Map[ToString, s]]; w1 = StringReplace[w, {"101" -> "2"}] st = ToCharacterCode[w1] - 48 (* A284394 *) Flatten[Position[st, 0]] (* A032766 *) Flatten[Position[st, 1]] (* A284395 *) Flatten[Position[st, 2]] (* A284396 *)
Comments