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-5 of 5 results.

A083528 a(n) = 5^n mod 2*n.

Original entry on oeis.org

1, 1, 5, 1, 5, 1, 5, 1, 17, 5, 5, 1, 5, 25, 5, 1, 5, 1, 5, 25, 41, 25, 5, 1, 25, 25, 53, 9, 5, 25, 5, 1, 59, 25, 45, 1, 5, 25, 47, 65, 5, 1, 5, 9, 35, 25, 5, 1, 19, 25, 23, 1, 5, 1, 45, 81, 11, 25, 5, 25, 5, 25, 125, 1, 5, 49, 5, 81, 125, 65, 5, 1, 5, 25, 125, 17, 3, 25, 5, 65, 161, 25, 5, 1, 65
Offset: 1

Views

Author

Labos Elemer, Apr 30 2003

Keywords

Comments

a(n) = 1 iff n is in A067946. - Robert Israel, Dec 26 2014

Examples

			a(3) = 5 because 5^3 = 125 and 125 == 5 mod (2 * 3).
a(4) = 1 because 5^4 = 625 and 625 == 1 mod (2 * 4).
		

Crossrefs

Programs

  • Magma
    [Modexp(5, n, 2*n): n in [1..80]]; // Vincenzo Librandi, Oct 19 2018
  • Maple
    seq(5 &^n mod (2*n), n = 1 .. 100); # Robert Israel, Dec 26 2014
  • Mathematica
    Table[PowerMod[5, w, 2w], {w, 1, 100}]
  • PARI
    vector(100, n, lift(Mod(5, 2*n)^n)) \\ Michel Marcus, Dec 29 2014
    

A083530 a(n) = 7^n mod (2*n).

Original entry on oeis.org

1, 1, 1, 1, 7, 1, 7, 1, 1, 9, 7, 1, 7, 21, 13, 1, 7, 1, 7, 1, 7, 5, 7, 1, 7, 49, 1, 49, 7, 49, 7, 1, 13, 49, 63, 1, 7, 49, 31, 1, 7, 49, 7, 25, 37, 49, 7, 1, 49, 49, 37, 9, 7, 1, 43, 49, 1, 49, 7, 1, 7, 49, 91, 1, 37, 37, 7, 89, 67, 49, 7, 1, 7, 49, 43, 121, 105, 25, 7, 1, 1, 49, 7, 49, 147, 49
Offset: 1

Views

Author

Labos Elemer, Apr 30 2003

Keywords

Examples

			For n = 5, a(5) = 7 because 7^5 = 16807 = 1680*10 + 7, that is 7^5 == 7 (mod 2*5).
		

Crossrefs

Programs

  • Mathematica
    Table[Mod[7^w, 2*w], {w, 1, 100}]
  • PARI
    a(n)=lift(Mod(7,2*n)^n) \\ Charles R Greathouse IV, Oct 03 2016

A082511 a(n) = 3^n mod 2n.

Original entry on oeis.org

1, 1, 3, 1, 3, 9, 3, 1, 9, 9, 3, 9, 3, 9, 27, 1, 3, 9, 3, 1, 27, 9, 3, 33, 43, 9, 27, 25, 3, 9, 3, 1, 27, 9, 47, 9, 3, 9, 27, 1, 3, 57, 3, 81, 63, 9, 3, 33, 31, 49, 27, 81, 3, 81, 67, 65, 27, 9, 3, 81, 3, 9, 27, 1, 113, 69, 3, 81, 27, 109, 3, 81, 3, 9, 57, 81, 75, 105, 3, 1, 81, 9, 3, 57, 73
Offset: 1

Views

Author

Labos Elemer, Apr 28 2003

Keywords

Examples

			Residues are often also powers of 3, that is, 3^n = k*2*n + 3^j, as is the case for n=1..23. The first terms that are not powers of 3 are a(24)=33 and a(25)=43.
a(6)=9: modulus = 2*n = 12; 3^n = 3^6 = 729 = 60*12 + 9 = 720 + a(6).
		

Crossrefs

Programs

  • Mathematica
    Table[PowerMod[3,n,2n],{n,90}] (* Harvey P. Dale, Jan 21 2014 *)
  • PARI
    a(n) = lift(Mod(3, 2*n)^n) \\ Felix Fröhlich, Oct 20 2018
  • Python
    for n in range(1, 80): print(pow(3, n, 2*n), end=" ") # Stefano Spezia, Oct 20 2018
    

A191561 a(n) = 2^n mod 3*n.

Original entry on oeis.org

2, 4, 8, 4, 2, 10, 2, 16, 26, 4, 2, 28, 2, 4, 8, 16, 2, 28, 2, 16, 8, 4, 2, 64, 32, 4, 80, 16, 2, 64, 2, 64, 8, 4, 53, 28, 2, 4, 8, 16, 2, 64, 2, 16, 107, 4, 2, 64, 128, 124, 8, 16, 2, 82, 98, 88, 8, 4, 2, 136, 2, 4, 134, 64, 32, 64, 2, 16, 8, 184, 2, 136, 2, 4
Offset: 1

Views

Author

Vincenzo Librandi, Jul 31 2011

Keywords

Crossrefs

Programs

A191562 a(n) = 7^n mod 3*n.

Original entry on oeis.org

1, 1, 1, 1, 7, 1, 7, 1, 1, 19, 7, 1, 7, 7, 28, 1, 7, 1, 7, 1, 28, 49, 7, 1, 7, 49, 1, 49, 7, 19, 7, 1, 46, 49, 28, 1, 7, 49, 109, 1, 7, 91, 7, 25, 82, 49, 7, 1, 49, 49, 37, 61, 7, 1, 43, 49, 1, 49, 7, 1, 7, 49, 28, 1, 37, 37, 7, 157, 136, 49, 7, 1, 7, 49
Offset: 1

Views

Author

Vincenzo Librandi, Jul 31 2011

Keywords

Crossrefs

Programs

Showing 1-5 of 5 results.