login
A175344
Triangle read by rows: The first integer in each row, a(n,1) = n. a(n,m) = the smallest positive integer not yet occurring in row n such that |a(n,m)-a(n,m-1)| = a power of 2, for each m where 1 < m <= n.
1
1, 2, 1, 3, 1, 2, 4, 2, 1, 3, 5, 1, 2, 3, 4, 6, 2, 1, 3, 4, 5, 7, 3, 1, 2, 4, 5, 6, 8, 4, 2, 1, 3, 5, 6, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 10, 2, 1, 3, 4, 5, 6, 7, 8, 9, 11, 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 4, 2, 1, 3, 5, 6, 7, 8, 9, 10, 11, 13, 5, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12
OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..11325 (1 <= n <= 150)
EXAMPLE
Triangle begins:
1
2 1
3 1 2
4 2 1 3
5 1 2 3 4
6 2 1 3 4 5
7 3 1 2 4 5 6
8 4 2 1 3 5 6 7
9 1 2 3 4 5 6 7 8
10 2 1 3 4 5 6 7 8 9
11 3 1 2 4 5 6 7 8 9 10
12 4 2 1 3 5 6 7 8 9 10 11
...
MATHEMATICA
Table[Block[{a = {n}, m}, Do[k = 1; While[Or[MemberQ[a, k], ! IntegerQ@ Log2@ Abs[k - a[[m - 1]]] ], k++]; AppendTo[a, k], {m, 2, n}]; a], {n, 14}] // Flatten (* Michael De Vlieger, Dec 14 2016 *)
CROSSREFS
Sequence in context: A334431 A342011 A087295 * A056951 A130517 A316715
KEYWORD
nonn,tabl
AUTHOR
Leroy Quet, Apr 17 2010
EXTENSIONS
More terms from Michael De Vlieger, Dec 14 2016
STATUS
approved