The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A071982 Parity of the decimal digits of sqrt(2). 1

%I

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

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

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

%N Parity of the decimal digits of sqrt(2).

%H G. C. Greubel, <a href="/A071982/b071982.txt">Table of n, a(n) for n = 0..10000</a>

%t Table[(1 - (-1)^Floor[10^n*Sqrt[2]])/2, {n, 0, 100}] (* _G. C. Greubel_, Oct 01 2018 *)

%o (PARI) \p200 for(n=0,150,print1((1-(-1)^floor(10^n*sqrt(2)))/2,","))

%o (PARI) a(n)=if(n<0,0,sqrtint(2*100^n)%2)

%o (MAGMA) [(1 - (-1)^Floor(10^n*Sqrt(2)))/2: n in [0..100]]; // _G. C. Greubel_, Oct 01 2018

%Y Cf. A001113, A030657.

%K easy,nonn,base

%O 0,1

%A _Benoit Cloitre_, Jun 25 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 18 23:16 EDT 2021. Contains 347548 sequences. (Running on oeis4.)