Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A162751
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A162751 Write down in binary the nth positive (odd) integer that is a palindrome in base 2. Take only the leftmost half of the digits (including the middle digit if there are an odd number of digits). a(n) is the decimal equivalent of the result. +0
1
1, 1, 2, 3, 2, 3, 4, 5, 6, 7, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 (list; graph; listen)
OFFSET

1,3

COMMENT

Every positive integer occurs exactly twice in this sequence.

EXAMPLE

27 is the 9th (odd) palindrome when written in binary. 27 in binary is 11011. Take the leftmost half of the digits (including the middle digit), and we have 110. a(9) is decimal equivalent of this, which is 6.

MAPLE

read("transforms3") ; a006995 := BFILETOLIST("b006995.txt") ; chop := proc(L) [op(1.. floor((nops(L)+1)/2), L)] ; end: for n from 2 to 100 do p := op(n, a006995) ; bdgs := chop(convert(p, base, 2)) ; add(op(-i, bdgs)*2^(i-1), i=1..nops(bdgs)) ; printf("%d, ", %) ; end do: [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 01 2009]

CROSSREFS

A006995

Sequence in context: A106249 A110516 A134986 this_sequence A026342 A078198 A098235

Adjacent sequences: A162748 A162749 A162750 this_sequence A162752 A162753 A162754

KEYWORD

base,nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Jul 12 2009

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 01 2009

page 1

Search completed in 0.005 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research