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!)
A247459 Numbers k such that d(r,k) = d(s,k), where d(x,k) = k-th binary digit of x, r = {sqrt(2)}, s = {3*sqrt(2)}, and { } = fractional part. 2

%I #12 Sep 28 2014 08:41:46

%S 1,3,5,7,8,9,10,11,13,15,16,17,19,21,23,25,27,29,30,31,32,33,34,36,38,

%T 39,40,42,43,44,46,48,50,51,53,54,56,57,58,59,61,62,64,66,68,70,72,73,

%U 74,75,76,78,80,81,82,84,86,87,89,91,93,94,96,97,99,101

%N Numbers k such that d(r,k) = d(s,k), where d(x,k) = k-th binary digit of x, r = {sqrt(2)}, s = {3*sqrt(2)}, and { } = fractional part.

%C Every positive integer lies in exactly one of the sequences A247459 and A247460.

%H Clark Kimberling, <a href="/A247459/b247459.txt">Table of n, a(n) for n = 1..1000</a>

%e {1*sqrt(2)} has binary digits 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1,...

%e {3*sqrt(2)} has binary digits 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1,...

%e so that a(1) = 1 and a(2) = 3.

%t z = 200; r = FractionalPart[Sqrt[2]]; s = FractionalPart[3*Sqrt[2]];

%t u = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[r, 2, z]];

%t v = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[s, 2, z]];

%t t = Table[If[u[[n]] == v[[n]], 1, 0], {n, 1, z}];

%t Flatten[Position[t, 1]] (* A247459 *)

%t Flatten[Position[t, 0]] (* A247460 *)

%Y Cf. A247460, A247455, A247454.

%K nonn,easy,base

%O 1,2

%A _Clark Kimberling_, Sep 18 2014

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 April 19 06:44 EDT 2024. Contains 371782 sequences. (Running on oeis4.)