login

Revision History for A318961

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
One of the two successive approximations up to 2^n for 2-adic integer sqrt(-7). This is the 3 (mod 4) case.
(history; published version)
#44 by Michael De Vlieger at Fri Dec 17 08:26:45 EST 2021
STATUS

reviewed

approved

#43 by Michael De Vlieger at Fri Dec 17 08:26:42 EST 2021
STATUS

proposed

reviewed

#42 by Jon E. Schoenfield at Fri Dec 17 05:51:04 EST 2021
STATUS

editing

proposed

#41 by Jon E. Schoenfield at Fri Dec 17 05:50:59 EST 2021
COMMENTS

a(n) is the unique number k in [1, 2^n] and congruent to 3 (mod 4 ) such that k^2 + 7 is divisible by 2^(n+1).

The 2-adic integers are very different from p-adic ones where p is an odd prime. For example, provided that there is at least one solution, the number of solutions to x^n = a over p-adic integers is gcd(n, p-1) for odd primes p and gcd(n, 2) for p = 2. For odd primes p, x^2 = a is solvable iff a is a quadratic residue modulo p, while for p = 2 it's solvable iff a == 1 (mod 8). If gcd(n, p-1) > 1 and gcd(a, p) = 1, then the solutions to x^n = a differ start from starting at the rightmost digit for odd primes p, while for p = 2 they differ start from starting at the second next-to-rightmost digit. As a result, the formulas and the program here are different from those in other entries related to p-adic integers.

STATUS

approved

editing

#40 by OEIS Server at Wed Aug 28 11:48:49 EDT 2019
LINKS

Jianing Song, <a href="/A318961/b318961_1.txt">Table of n, a(n) for n = 2..999</a> (offset corrected by Jianing Song)

#39 by N. J. A. Sloane at Wed Aug 28 11:48:49 EDT 2019
STATUS

editing

approved

Discussion
Wed Aug 28
11:48
OEIS Server: Installed new b-file as b318961.txt.  Old b-file is now b318961_1.txt.
#38 by N. J. A. Sloane at Wed Aug 28 11:48:41 EDT 2019
NAME

One of the two successive approximations up to 2^n for 2-adic integer sqrt(-7). Here This is the 3 (mod 4) case.

COMMENTS

The 2-adic integers are very different from p-adic ones where p is any an odd prime. For example, provided that there is at least one solution, the number of solutions to x^n = a over p-adic integers is gcd(n, p-1) for odd primes p and gcd(n, 2) for p = 2. For odd primes p, x^2 = a is solvable iff a is a quadratic residue modulo p, while for p = 2 it's solvable iff a == 1 (mod 8). If gcd(n, p-1) > 1 and gcd(a, p) = 1, then the solutions to x^n = a differ start from the rightmost digit for odd primes p, while for p = 2 they differ start from the second rightmost digit. As a result, the formulas and the program here are different from those in other entries related to p-adic integers.

STATUS

proposed

editing

Discussion
Wed Aug 28
11:48
N. J. A. Sloane: edited
#37 by Jianing Song at Wed Aug 28 11:36:48 EDT 2019
STATUS

editing

proposed

#36 by Jianing Song at Wed Aug 28 11:33:33 EDT 2019
LINKS

Jianing Song, <a href="/A318961/b318961_1.txt">Table of n, a(n) for n = 32..1000999</a> (offset corrected by Jianing Song)

FORMULA

a(32) = 3; for n >= 4, 3, a(n) = a(n-1) if a(n-1)^2 + 7 is divisible by 2^(n, +1), otherwise a(n-1) + 2^(n-21).

a(n) = 2^(n-1) - A318960(n).

a(n) = Sum_{i=0..n-21} A318963(i)*2^i.

EXAMPLE

The unique number k in [1, 4] and congruent to 3 modulo 4 such that k^2 + 7 is divisible by 8 is 3, so a(32) = 3.

a(32)^2 + 7 = 16 which is divisible by 16, so a(43) = a(32) = 3.

a(43)^2 + 7 = 16 which is not divisible by 32, so a(54) = a(43) + 2^3 = 11.

a(54)^2 + 7 = 128 which is divisible by 64, so a(65) = a(54) = 11.

a(75)^2 + 7 = 128 which is divisible by 128, so a(76) = a(65) = 11.

PROG

(PARI) a(n) = if(n==3, 2, 3, truncate(sqrt(-7+O(2^(n+1)))))

EXTENSIONS

Offset corrected by Jianing Song, Aug 28 2019

#35 by Jianing Song at Tue Aug 27 10:26:13 EDT 2019
OFFSET

3,2,1

COMMENTS

a(n) is the unique number k in [1, 2^(n-1)] and congruent to 3 mod 4 such that k^2 + 7 is divisible by 2^(n+1).

The 2-adic integers are very different from p-adic ones where p is any odd prime. For example, provided that there is at least one solution, the number of solutions to x^n = a over p-adic integers is gcd(n, p-1) for odd primes p and gcd(n, 2) for p = 2. For odd primes p, x^2 = a is solvable iff a is a quadratic residue modulo p, while for p = 2 it's solvable iff a == 1 (mod 8). The two successive approximation of sqrt(a) up to p^n are in range [1, p^n] for odd primes p and [1, 2^(n-1)] for p = 2. If gcd(n, p-1) > 1 and gcd(a, p) = 1, then the solutions to x^n = a differ start from the rightmost digit for odd primes p, while for p = 2 they differ start from the second rightmost digit. As a result, the formulas and the program here are different from those in other entries related to p-adic integers.

STATUS

approved

editing

Discussion
Tue Aug 27
10:27
Jianing Song: 1 mod 4, so offset should be 2. I will come back a few days later.
10:27
Jianing Song: 3 mod 4