A255066 The trunk of number-of-runs beanstalk (A255056) with reversed subsections.
0, 2, 6, 4, 14, 12, 10, 30, 28, 26, 22, 18, 62, 60, 58, 54, 50, 46, 42, 36, 32, 126, 124, 122, 118, 114, 110, 106, 100, 96, 94, 90, 84, 78, 74, 68, 64, 254, 252, 250, 246, 242, 238, 234, 228, 224, 222, 218, 212, 206, 202, 196, 192, 190, 186, 180, 174, 168, 162, 156, 152, 148, 142, 138, 132, 128, 510
Offset: 0
Examples
Rows 0 - 5 of the array: 0; 2; 6, 4; 14, 12, 10; 30, 28, 26, 22, 18; 62, 60, 58, 54, 50, 46, 42, 36, 32; After row 0, the length of row n is given by A255071(n).
Links
- Antti Karttunen, Table of n, a(n) for n = 0..16142; Rows 0..16, flattened
Crossrefs
Formula
a(0) = 0, a(1) = 2, a(2) = 6; and for n > 2, a(n) = A004755(A004755(A236840(a(n-1)))) if A236840(a(n-1))+2 is power of 2, otherwise just A236840(a(n-1)) [where A004755(x) adds one 1-bit to the left of the most significant bit of x].
In other words, for n > 2, let k = A236840(a(n-1)). Then, if k+2 is not a power of 2, a(n) = k, otherwise a(n) = k + (6 * (2^A000523(k))).
Other identities. For all n >= 0:
Comments