login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A247546
Numbers k such that d(r,k) = d(s,k), where d(x,k) = k-th binary digit of x, r = {e}, s = {1/e}, and { } = fractional part.
2
4, 6, 7, 11, 12, 15, 16, 17, 18, 19, 20, 22, 23, 26, 30, 32, 33, 34, 38, 39, 41, 43, 45, 46, 47, 53, 55, 57, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 74, 76, 82, 83, 89, 90, 91, 92, 93, 94, 96, 97, 98, 99, 100, 103, 104, 106, 108, 109, 110, 111, 112, 113, 114
OFFSET
1,1
COMMENTS
Every positive integer lies in exactly one of the sequences A247546 and A247547.
LINKS
EXAMPLE
{e/1} has binary digits 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, ...
{1/e} has binary digits 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, ...
so that a(1) = 4 and a(2) = 6.
MATHEMATICA
z = 200; r = FractionalPart[E]; s = FractionalPart[1/E];
u = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[r, 2, z]];
v = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[s, 2, z]];
t = Table[If[u[[n]] == v[[n]], 1, 0], {n, 1, z}];
Flatten[Position[t, 1]] (* A247546 *)
Flatten[Position[t, 0]] (* A247547 *)
CROSSREFS
Cf. A247547.
Sequence in context: A103057 A039590 A134038 * A110605 A206775 A287157
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Sep 21 2014
STATUS
approved