login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A071982 Parity of the decimal digits of sqrt(2). 1
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

G. C. Greubel, Table of n, a(n) for n = 0..10000

MATHEMATICA

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

PROG

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

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

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

CROSSREFS

Cf. A001113, A030657.

Sequence in context: A286726 A189209 A266754 * A266588 A157749 A129407

Adjacent sequences:  A071979 A071980 A071981 * A071983 A071984 A071985

KEYWORD

easy,nonn,base

AUTHOR

Benoit Cloitre, Jun 25 2002

STATUS

approved

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 22 16:08 EST 2019. Contains 320399 sequences. (Running on oeis4.)