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!)
A023971 First bit in fractional part of binary expansion of 4th root of n. 1

%I #16 Jul 28 2023 14:55:18

%S 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

%T 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,

%U 1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

%N First bit in fractional part of binary expansion of 4th root of n.

%C a(n) = 0 if k^4 <= n <= k^4 + 2*k^3 + (3*k^2+k)/2,

%C = 1 if k^4 + 2*k^3 + (3*k^2+k)/2 < n < (k+1)^4. - _Robert Israel_, Aug 18 2014

%H Robert Israel, <a href="/A023971/b023971.txt">Table of n, a(n) for n = 1..10000</a>

%p [seq(floor(2*n^(1/4)) mod 2, n=1..1000)]; # _Robert Israel_, Aug 18 2014

%t Array[ Function[ n, RealDigits[ N[ Power[ n, 1/4 ], 10 ], 2 ]// (#[ [ 1, #[ [ 2 ] ]+1 ] ])& ], 110 ]

%t Table[NumberDigit[Surd[n,4],-1,2],{n,120}] (* _Harvey P. Dale_, Jul 28 2023 *)

%K nonn,base

%O 1,1

%A _N. J. A. Sloane_, _Olivier GĂ©rard_

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 07:35 EDT 2024. Contains 371782 sequences. (Running on oeis4.)