Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A141709
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A141709 Least positive multiple of n which is palindromic in base 2, allowing for leading zeros (or: igoring trailing zeros). +0
1
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 33, 12, 65, 14, 15, 16, 17, 18, 513, 20, 21, 66, 2047, 24, 325, 130, 27, 28, 1421, 30, 31, 32, 33, 34, 455, 36, 2553, 1026, 195, 40, 1025, 42, 129, 132, 45, 4094, 4841, 48, 1421, 650, 51, 260, 3339, 54, 165, 56, 513, 2842, 6077, 60, 427, 62 (list; graph; listen)
OFFSET

1,2

COMMENT

Even numbers cannot be palindromic in base 2, unless leading zeros are considered (or, equivalently, resp. more precisely, trailing zeros are discarded). This is done in this version of A141708, which therefore does not need to be restricted to odd n as it has been done for A141707 and A141708.

PROGRAM

(PARI) A141709(n)=forstep(k=n, 10^9, n, vecextract(t=binary(k>>valuation(k, 2)), "-1..1")-t|return(k))

CROSSREFS

Cf. A050782, A141707-A141708, A062279.

Sequence in context: A161978 A132579 A004850 this_sequence A062683 A137857 A161980

Adjacent sequences: A141706 A141707 A141708 this_sequence A141710 A141711 A141712

KEYWORD

base,easy,nice,nonn

AUTHOR

M. F. Hasler (Maximilian.Hasler(AT)gmail.com), Jul 17 2008

page 1

Search completed in 0.002 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 14:49 EST 2009. Contains 167514 sequences.


AT&T Labs Research