login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A342582 a(n) is the least multiple of n that is a "binary antipalindrome" (i.e., an element of A035928). 2
2, 2, 12, 12, 10, 12, 42, 56, 558, 10, 682, 12, 52, 42, 150, 240, 170, 558, 38, 240, 42, 682, 598, 240, 150, 52, 3132, 56, 232, 150, 558, 992, 8382, 170, 2730, 936, 666, 38, 936, 240, 738, 42, 3010, 3784, 535230, 598, 11938, 240, 2254, 150, 204, 52, 212, 3132 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This sequence has similarities with A141709.
LINKS
FORMULA
a(n) = n * A318569(n).
EXAMPLE
For n = 42:
- 42 is a binary antipalindrome,
- so a(42) = 42.
PROG
(PARI) See Links section.
(Python)
def comp(s): z, o = ord('0'), ord('1'); return s.translate({z:o, o:z})
def BCR(n): return int(comp(bin(n)[2:])[::-1], 2)
def bin_anti_pal(n): return BCR(n) == n
def a(n):
kn = n
while not bin_anti_pal(kn): kn += n
return kn
print([a(n) for n in range(1, 55)]) # Michael S. Branicky, Mar 15 2021
CROSSREFS
Sequence in context: A109767 A339297 A196061 * A131121 A232853 A328520
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 15 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 07:48 EDT 2024. Contains 375027 sequences. (Running on oeis4.)