login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A137595
Binary terms such that duplicating the rightmost bit and counting repeats gives a palindrome.
0
1, 3, 6, 7, 13, 15, 25, 26, 28, 31, 49, 53, 59, 63
OFFSET
1,2
COMMENTS
Decimal-binary representations of palindromic continued fractions.
Using the conversion rules, the first 14 fractions in the Stern-Brocot infinite Farey tree, (rational fractions k, 0 < k < 1) with palindromic continued fraction representations are: 1/2, 1/3, 2/5, 1/4, 3/8, 1/5, 5/12, 5/13, 3/10, 1/6, 7/16, 8/21, 4/15, 1/7.
EXAMPLE
The first 14 binary terms corresponding to (1, 3, 6, 7, ...) = 1, 11, 110, 111, 1101, 1111, 1101, 11010, 11100, 11111, 110001, 110101, 111011, 111111, ...). 26 in binary is 11010. Appending an 0 to the right gives 110100. Recording the number of repeats, we get 2,1,1,2, a palindrome, so 26 is in the sequence. Later, we can obtain the fraction corresponding to continued fraction [2,1,1,2] = 5/13.
CROSSREFS
Sequence in context: A088146 A176301 A191290 * A033053 A248388 A354765
KEYWORD
nonn,base
AUTHOR
Gary W. Adamson, Jan 29 2008
EXTENSIONS
Edited by Franklin T. Adams-Watters, Mar 29 2014
STATUS
approved