login
A078759
Height of n-th term in A064389 (variation (4) of Recamán's sequence).
2
1, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 7, 6, 7, 6, 5, 6, 5, 6, 7, 8, 7, 8, 7, 6, 5, 6, 5, 6, 7, 8, 7, 6, 7, 8, 9, 8, 7, 6, 7, 6, 7, 6, 7, 8, 9, 8, 9, 8, 7, 6, 7, 8, 9, 8, 9, 8, 9, 8, 9, 8, 7, 8, 9, 10, 9, 10, 9, 8, 7, 8, 7, 8, 9, 10, 9, 10, 9, 10, 9, 8, 9, 10, 11, 10, 11, 10, 9, 8, 9, 8, 9, 10
OFFSET
1,2
FORMULA
The height of a term in A064389 = number of addition steps - number of subtraction steps to produce it.
CROSSREFS
KEYWORD
nonn
AUTHOR
Reiner Martin, Jan 08 2003
STATUS
approved