login
A097510
Leftmost terms of the triangle A097825.
2
1, 2, 2, 3, 2, 1, 6, 1, 9, 7, 5, 11, 3, 14, 1, 8, 7, 6, 9, 4, 11, 6, 20, 8, 20, 10, 20, 28, 2, 29, 2, 29, 4, 23, 12, 11, 26, 9, 30, 7, 34, 5, 38, 3, 42, 25, 23, 29, 21, 33, 19, 37, 17, 41, 15, 46, 9, 46, 11, 46, 13, 40, 21, 40, 23, 4, 66, 6, 66, 8, 66, 16, 60, 18, 60, 20, 60, 68, 12, 72, 10
OFFSET
1,2
LINKS
PROG
(PARI) a(n) = local(x); x = n; forstep (i = n - 1, 2, -1, if (i%2, if (x <= i, x = i + 1 - x), if (x + i > n, x = n + n + 1 - i - x))); x; \\ David Wasserman, Dec 27 2007
CROSSREFS
Sequence in context: A104897 A185694 A305294 * A237619 A156747 A318958
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Aug 26 2004
EXTENSIONS
More terms from David Wasserman, Dec 27 2007
STATUS
approved