OFFSET
1,1
COMMENTS
This sequence is a binary variant of A309631.
This kind of sequence is well defined for any fixed base b > 1: for any n > 0: consider the concatenation in base b, say m, of n, "0", and n; m is a multiple of n, and removing the central "0" (which is not a trailing zero), gives another multiple of n.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program for A328567
FORMULA
Apparently, a(n)/n = 2^(1+A070940(n)) - 1.
EXAMPLE
For n = 3:
- the first multiples of 3 are (in decimal and in binary), alongside the possible values resulting from striking out a non-trailing zero:
3*k bin(3*k) striked (binary)
--- -------- ----------------
3 11 1
6 110 10
9 1001 1, 100, 101
12 1100 100
15 1111 111
18 10010 10, 1000, 1010
21 10101 101, 1001, 1010, 1011, 1101
- 21 is the least appropriate multiple,
- so a(3) = 21.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Oct 20 2019
STATUS
approved