I was considering the number of consecutive terms of the integer reciprocal sequence (1/1, 1/2, 1/3...) which could be summed without exceeding 1, starting from the nth reciprocal. If we call this number of consecutive terms s(n) then, for example, s(2) = 2 because 1/2 + 1/3 < 1 but 1/2 + 1/3 + 1/4 > 1. The sequence begins:
1, 2, 4, 6, 7, 9, 11, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 30, 31, 33...
A quick search on OEIS found that it formed the first column of this table which, as the page says, is a permutation of of the natural numbers. I'm not clear where the "x" in the given formula comes from, but anyway...
I also looked at the sequence t(n) = s(n) + n - 1:
1, 3, 6, 9, 11, 14, 17, 19, 22, 25, 28, 30, 33, 36, 38, 41, 44, 47, 49, 52...
My reason for doing this is best explained with an example: starting with 1/5, s(5)=7 consecutive integer reciprocals can be summed without exceeding 1. The last of these reciprocals is 1/t(5)=1/11.
Searching OEIS found this, which has a simple formula and moreover is precisely the set of "numbers n [not to be confused with the index, n, of the terms of the sequence] such that the first digit in ternary expansion on 2^n is 2" and also "appears in connection with the 3x+1 problem". I found this highly curious, as I can see no particular reason why the first digit of a power of two in ternary or, indeed, the 3x+1 problem should have anything to do with the index of the last reciprocal in a sum. Can anyone shed any light on this?
