A329126 a(n) is the least positive number which yields a multiple of n when its decimal digits (which are necessarily 0's and 1's) are read in any base.
1, 110, 101010, 111100, 100010001000100010, 1111110, 10000010000010000010000010000010000010, 11111111000, 1010101010101010100, 1100110011001100110, 100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000100000000010, 11111111111100
Offset: 1
Examples
a(3) = 101010: 101010_2 = 42 = 14*3; 101010_3 = 273 = 91*3; 101010_4 = 1092 = 364*3; 101010_5 = 3255 = 1085*3; 101010_6 = 7998 = 2666*3; 101010_7 = 17157 = 5719*3; 101010_8 = 33288 = 11096*3; 101010_9 = 59787 = 19929*3; 101010_10 = 101010 = 33670*3; 101010_11 = 162393 = 54131*3; 101010_12 = 250572 = 83524*3; and so on. All the resulting values are multiples of 3.
Links
- Alon Ran, Table of n, a(n) for n = 1..21
- Alon Ran, Comments on this sequence
Crossrefs
Programs
-
PARI
\\ See A329338 for an upper bound which equals a(n) in many cases, e.g., all n < 14 except for n = 10. - M. F. Hasler, Nov 10 2021
Formula
To generate an upper bound on a(n), start with n 1's (this is required to ensure that it is divisible by n in bases n+1, 2n+1, etc.)
Next, place A268336(n)-1 0's in between the 1's (this ensures that the powers that are added will always sum to 0 (mod n)).
Finally, add A051903(n) 0's on the right (this is to ensure that the number will be divisible by n in bases that are roots of factors of n).
Note that this formula does not always yield the minimal solution a(n). For instance, a(10) is obtained from the above result by grouping the 1's in pairs and separating the pairs by two 0's.
a(n) <= A329338(n), with equality except for n = 10, 14, 15, ... - M. F. Hasler, Nov 14 2019
Extensions
I have weakened some of the assertions in the Comments section, since they seemed to be unproved. See Alon Ran's comments (see Links). - N. J. A. Sloane, Dec 02 2019
Definition corrected, following a remark by Don Reble, by M. F. Hasler, Nov 09 2021
The present definition has been reworded by Peter Munn, Nov 17 2021, and by N. J. A. Sloane, Nov 29 2021
Comments