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!)
A341540 Expansion of the 2-adic integer sqrt(17) that ends in 11. 5
1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
Over the 2-adic integers there are 2 solutions to x^2 = 17, one ends in 01 and the other ends in 11. This sequence gives the latter one. See A341539 for detailed information.
LINKS
FORMULA
a(0) = 1, a(1) = 0; for n >= 2, a(n) = 0 if A341539(n)^2 - 17 is divisible by 2^(n+2), otherwise 1.
a(n) = 1 - A322217(n) for n >= 1.
For n >= 2, a(n) = (A341539(n+1) - A341539(n))/2^n.
EXAMPLE
If x = ...00000110011001100001011001101100100010111, then x^2 = 10001_2 = 17.
PROG
(PARI) a(n) = if(n==1, 1, truncate(-sqrt(17+O(2^(n+2))))\2^n)
CROSSREFS
Cf. A322217, A341539 (successive approximations of the associated 2-adic square root of 17), A318962, A318963 (expansion of sqrt(-7)).
Sequence in context: A296209 A076141 A011751 * A214507 A093709 A079295
KEYWORD
nonn,base
AUTHOR
Jianing Song, Feb 13 2021
STATUS
approved

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 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)