|
|
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
|
|
|
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
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|