cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A290806 One of the two successive approximations up to 7^n for the 7-adic integer sqrt(-5). These are the numbers congruent to 3 mod 7 (except for the initial 0).

Original entry on oeis.org

0, 3, 17, 311, 997, 3398, 20205, 608450, 2255536, 25314740, 25314740, 307789989, 8217096961, 77423532966, 368090564187, 4437429001281, 4437429001281, 4437429001281, 4437429001281, 3261264624822179, 3261264624822179, 3261264624822179, 1120352992791390193
Offset: 0

Views

Author

Seiichi Manyama, Aug 11 2017

Keywords

Comments

x = ...112623,
x^2 = ...666662 = -5.

Examples

			a(1) =    3_7 = 3,
a(2) =   23_7 = 17,
a(3) =  623_7 = 311,
a(4) = 2623_7 = 997.
		

Crossrefs

Programs

  • Maple
    with(padic):
    R:= [rootp(x^2+5, 7, 100)]:
    R1:= op(select(t -> ratvaluep(evalp(t, 7, 1))=3, R)):
    seq(ratvaluep(evalp(R1, 7, n)), n=0..100); # Robert Israel, Aug 13 2017
  • PARI
    a(n) = if (n, truncate(sqrt(-5+O(7^(n)))), 0)

Formula

a(0) = 0 and a(1) = 3, a(n) = a(n-1) + (a(n-1)^2 + 5) mod 7^n for n > 1.

A318962 Digits of one of the two 2-adic integers sqrt(-7) that ends in 01.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1
Offset: 0

Views

Author

Jianing Song, Sep 06 2018

Keywords

Comments

Over the 2-adic integers there are 2 solutions to x^2 = -7, one ends in 01 and the other ends in 11. This sequence gives the former one. See A318960 for detailed information.

Examples

			...10110001110011100100110001100000010110101.
		

Crossrefs

Cf. A318960.
Digits of p-adic integers:
this sequence, A318963 (2-adic, sqrt(-7));
A271223, A271224 (3-adic, sqrt(-2));
A269591, A269592 (5-adic, sqrt(-4));
A210850, A210851 (5-adic, sqrt(-1));
A290566 (5-adic, 2^(1/3));
A290563 (5-adic, 3^(1/3));
A290794, A290795 (7-adic, sqrt(-6));
A290798, A290799 (7-adic, sqrt(-5));
A290796, A290797 (7-adic, sqrt(-3));
A212152, A212155 (7-adic, (1+sqrt(-3))/2);
A051277, A290558 (7-adic, sqrt(2));
A286838, A286839 (13-adic, sqrt(-1));
A309989, A309990 (17-adic, sqrt(-1)).
Also there are numerous sequences related to digits of 10-adic integers.

Programs

  • PARI
    a(n) = truncate(-sqrt(-7+O(2^(n+2))))\2^n

Formula

a(0) = 1, a(1) = 0; for n >= 2, a(n) = 0 if A318960(n)^2 + 7 is divisible by 2^(n+2), otherwise 1.
a(n) = 1 - A318963(n) for n >= 1.
For n >= 2, a(n) = (A318960(n+1) - A318960(n))/2^n.

Extensions

Corrected by Jianing Song, Aug 28 2019

A318963 Digits of one of the two 2-adic integers sqrt(-7) that ends in 11.

Original entry on oeis.org

1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0
Offset: 0

Views

Author

Jianing Song, Sep 06 2018

Keywords

Comments

Over the 2-adic integers there are 2 solutions to x^2 = -7, one ends in 01 and the other ends in 11. This sequence gives the latter one. See A318961 for detailed information.

Examples

			...01001110001100011011001110011111101001011.
		

Crossrefs

Cf. A318961.
Digits of p-adic integers:
A318962, this sequence (2-adic, sqrt(-7));
A271223, A271224 (3-adic, sqrt(-2));
A269591, A269592 (5-adic, sqrt(-4));
A210850, A210851 (5-adic, sqrt(-1));
A290566 (5-adic, 2^(1/3));
A290563 (5-adic, 3^(1/3));
A290794, A290795 (7-adic, sqrt(-6));
A290798, A290799 (7-adic, sqrt(-5));
A290796, A290797 (7-adic, sqrt(-3));
A212152, A212155 (7-adic, (1+sqrt(-3))/2);
A051277, A290558 (7-adic, sqrt(2));
A286838, A286839 (13-adic, sqrt(-1));
A309989, A309990 (17-adic, sqrt(-1)).
Also there are numerous sequences related to digits of 10-adic integers.

Programs

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

Formula

a(0) = a(1) = 1; for n >= 2, a(n) = 0 if A318961(n)^2 + 7 is divisible by 2^(n+2), otherwise 1.
a(n) = 1 - A318962(n) for n >= 1.
For n >= 2, a(n) = (A318961(n+1) - A318961(n))/2^n.

Extensions

Corrected by Jianing Song, Aug 28 2019

A309989 Digits of one of the two 17-adic integers sqrt(-1).

Original entry on oeis.org

4, 2, 10, 5, 12, 16, 12, 8, 13, 3, 14, 0, 6, 1, 0, 15, 1, 8, 14, 5, 7, 16, 14, 1, 5, 13, 9, 6, 5, 12, 16, 15, 9, 16, 14, 12, 16, 1, 3, 6, 4, 10, 15, 5, 16, 12, 2, 1, 5, 4, 0, 15, 2, 11, 14, 9, 5, 1, 11, 16, 15, 7, 5, 6, 14, 3, 12, 0, 0, 11, 12, 13, 9, 5, 4, 16, 13
Offset: 0

Views

Author

Jianing Song, Aug 26 2019

Keywords

Comments

This square root of -1 in the 17-adic field ends with digit 4. The other, A309990, ends with digit 13 (D when written as a 17-adic number).

Examples

			The solution to x^2 == -1 (mod 17^4) such that x == 4 (mod 17) is x == 27493 (mod 17^4), and 27493 is written as 5A24 in heptadecimal, so the first four terms are 4, 2, 10 and 5.
		

Crossrefs

Digits of p-adic square roots:
A318962, A318963 (2-adic, sqrt(-7));
A271223, A271224 (3-adic, sqrt(-2));
A269591, A269592 (5-adic, sqrt(-4));
A210850, A210851 (5-adic, sqrt(-1));
A290794, A290795 (7-adic, sqrt(-6));
A290798, A290799 (7-adic, sqrt(-5));
A290796, A290797 (7-adic, sqrt(-3));
A051277, A290558 (7-adic, sqrt(2));
A321074, A321075 (11-adic, sqrt(3));
A321078, A321079 (11-adic, sqrt(5));
A322091, A322092 (13-adic, sqrt(-3));
A286838, A286839 (13-adic, sqrt(-1));
A322087, A322088 (13-adic, sqrt(3));
this sequence, A309990 (17-adic, sqrt(-1)).

Programs

  • PARI
    a(n) = truncate(sqrt(-1+O(17^(n+1))))\17^n

Formula

a(n) = (A286877(n+1) - A286877(n))/17^n.
For n > 0, a(n) = 16 - A309990(n).

A309990 Digits of one of the two 17-adic integers sqrt(-1).

Original entry on oeis.org

13, 14, 6, 11, 4, 0, 4, 8, 3, 13, 2, 16, 10, 15, 16, 1, 15, 8, 2, 11, 9, 0, 2, 15, 11, 3, 7, 10, 11, 4, 0, 1, 7, 0, 2, 4, 0, 15, 13, 10, 12, 6, 1, 11, 0, 4, 14, 15, 11, 12, 16, 1, 14, 5, 2, 7, 11, 15, 5, 0, 1, 9, 11, 10, 2, 13, 4, 16, 16, 5, 4, 3, 7, 11, 12, 0
Offset: 0

Views

Author

Jianing Song, Aug 26 2019

Keywords

Comments

This square root of -1 in the 17-adic field ends with digit 13 (D when written as a 17-adic number). The other, A309989, ends with digit 4.

Examples

			The solution to x^2 == -1 (mod 17^4) such that x == 13 (mod 17) is x == 56028 (mod 17^4), and 56028 is written as B6ED in heptadecimal, so the first four terms are 13, 14, 6 and 11.
		

Crossrefs

Digits of p-adic square roots:
A318962, A318963 (2-adic, sqrt(-7));
A271223, A271224 (3-adic, sqrt(-2));
A269591, A269592 (5-adic, sqrt(-4));
A210850, A210851 (5-adic, sqrt(-1));
A290794, A290795 (7-adic, sqrt(-6));
A290798, A290799 (7-adic, sqrt(-5));
A290796, A290797 (7-adic, sqrt(-3));
A051277, A290558 (7-adic, sqrt(2));
A321074, A321075 (11-adic, sqrt(3));
A321078, A321079 (11-adic, sqrt(5));
A322091, A322092 (13-adic, sqrt(-3));
A286838, A286839 (13-adic, sqrt(-1));
A322087, A322088 (13-adic, sqrt(3));
A309989, this sequence (17-adic, sqrt(-1)).

Programs

  • PARI
    a(n) = truncate(-sqrt(-1+O(17^(n+1))))\17^n

Formula

a(n) = (A286878(n+1) - A286878(n))/17^n.
For n > 0, a(n) = 16 - A309989(n).

A290799 Coefficients in 7-adic expansion of sqrt(-5).

Original entry on oeis.org

4, 4, 0, 4, 5, 5, 1, 4, 2, 6, 5, 2, 1, 3, 0, 6, 6, 6, 4, 6, 6, 4, 4, 6, 5, 4, 0, 3, 4, 4, 4, 0, 1, 3, 2, 2, 0, 6, 1, 5, 1, 4, 0, 6, 2, 1, 0, 0, 6, 1, 5, 1, 0, 4, 3, 3, 6, 4, 0, 1, 1, 6, 5, 2, 5, 1, 4, 6, 4, 4, 5, 0, 1, 4, 2, 6, 1, 2, 0, 6, 6, 3, 3, 5, 2, 2, 0, 1
Offset: 0

Views

Author

Seiichi Manyama, Aug 10 2017

Keywords

Crossrefs

Formula

a(n) = 6 - A290798(n) for n > 0.
Showing 1-6 of 6 results.