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

A366654 a(n) = phi(8^n-1), where phi is Euler's totient function (A000010).

Original entry on oeis.org

6, 36, 432, 1728, 27000, 139968, 1778112, 6635520, 113467392, 534600000, 6963536448, 26121388032, 465193834560, 2427720325632, 28548223200000, 109586090557440, 1910296842179040, 9618417501143040, 123523151337020736, 406467072000000000, 7713001620195508224
Offset: 1

Views

Author

Sean A. Irvine, Oct 15 2023

Keywords

Crossrefs

phi(k^n-1): A053287 (k=2), A295500 (k=3), A295501 (k=4), A295502 (k=5), A366623 (k=6), A366635 (k=7), this sequence (k=8), A366663 (k=9), A295503 (k=10), A366685 (k=11), A366711 (k=12).

Programs

  • Mathematica
    EulerPhi[8^Range[30] - 1]
  • PARI
    {a(n) = eulerphi(8^n-1)}
    
  • Python
    from sympy import totient
    def A366654(n): return totient((1<<3*n)-1) # Chai Wah Wu, Oct 15 2023

Formula

a(n) = A053287(3*n). - Max Alekseyev, Jan 09 2024

A366621 Number of divisors of 6^n-1.

Original entry on oeis.org

2, 4, 4, 8, 6, 16, 4, 16, 16, 48, 8, 128, 8, 48, 48, 64, 32, 128, 8, 384, 16, 32, 32, 512, 32, 128, 64, 384, 4, 1536, 8, 512, 64, 256, 96, 8192, 64, 64, 64, 3072, 8, 768, 32, 512, 1536, 256, 16, 8192, 32, 512, 512, 2048, 16, 2048, 96, 12288, 128, 64, 16
Offset: 1

Views

Author

Sean A. Irvine, Oct 14 2023

Keywords

Examples

			a(4)=8 because 6^4-1 has divisors {1, 5, 7, 35, 37, 185, 259, 1295}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](6^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0, 6^Range[100]-1]
  • PARI
    a(n) = numdiv(6^n-1);

Formula

a(n) = sigma0(6^n-1) = A000005(A024062(n)).

A366653 Sum of the divisors of 8^n-1.

Original entry on oeis.org

8, 104, 592, 8736, 38912, 473600, 2466048, 38054016, 155493536, 2015330304, 10359014400, 166290432000, 636328345600, 7645340651520, 42424026529792, 648494317126656, 2599936977797120, 32817383473149440, 164708609085669376, 3010983668199456768
Offset: 1

Views

Author

Sean A. Irvine, Oct 15 2023

Keywords

Examples

			a(5)=38912 because 8^5-1 has divisors {1, 7, 31, 151, 217, 1057, 4681, 32767}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[sigma](8^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[1, 8^Range[30]-1]
  • SageMath
    [sigma(8**n-1, 1) for n in range(1, 21)] # Stefano Spezia, Aug 02 2025

Formula

a(n) = sigma(8^n-1) = A000203(A024088(n)).
a(n) = A075708(3*n). - Max Alekseyev, Jan 09 2024

A366661 Number of divisors of 9^n-1.

Original entry on oeis.org

4, 10, 16, 24, 24, 80, 16, 112, 128, 180, 64, 384, 16, 160, 768, 256, 128, 1280, 64, 864, 768, 640, 32, 14336, 384, 160, 4096, 1536, 256, 23040, 128, 576, 2048, 1280, 768, 12288, 128, 640, 12288, 16128, 128, 61440, 32, 12288, 196608, 320, 512, 131072, 2048
Offset: 1

Views

Author

Sean A. Irvine, Oct 15 2023

Keywords

Examples

			a(2)=10 because 9^2-1 has divisors {1, 2, 4, 5, 8, 10, 16, 20, 40, 80}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](9^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0, 9^Range[100]-1]
  • PARI
    a(n) = numdiv(9^n-1);

Formula

a(n) = sigma0(9^n-1) = A000005(A024101(n)).
a(n) = A366575(2*n) = A366575(n) * A366577(n) * (4 + A007814(n)) / (2 * (3 + A007814(n))). - Max Alekseyev, Jan 07 2024

A366602 Number of divisors of 4^n-1.

Original entry on oeis.org

2, 4, 6, 8, 8, 24, 8, 16, 32, 48, 16, 96, 8, 64, 96, 32, 8, 512, 8, 192, 144, 128, 16, 768, 128, 128, 160, 256, 64, 4608, 8, 128, 384, 128, 512, 8192, 32, 128, 192, 768, 32, 9216, 32, 1024, 4096, 512, 64, 6144, 32, 8192, 1536, 1024, 64, 10240, 3072, 2048, 384
Offset: 1

Views

Author

Sean A. Irvine, Oct 14 2023

Keywords

Examples

			a(4)=8 because 4^4-1 has divisors {1, 3, 5, 15, 17, 51, 85, 255}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](4^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0,4^Range[100]-1] (* Paolo Xausa, Oct 14 2023 *)
  • PARI
    a(n) = numdiv(4^n-1);

Formula

a(n) = sigma0(4^n-1) = A000005(A024036(n)).
a(n) = A046801(2*n) = A046798(n) * A046801(n). - Max Alekseyev, Jan 07 2024

A366633 Number of divisors of 7^n-1.

Original entry on oeis.org

4, 10, 12, 36, 8, 60, 16, 84, 64, 80, 16, 864, 8, 160, 96, 384, 16, 640, 16, 1536, 96, 160, 32, 16128, 32, 80, 1280, 1152, 32, 3840, 32, 1728, 384, 80, 128, 18432, 32, 160, 192, 14336, 32, 7680, 16, 4608, 2048, 160, 16, 147456, 256, 640, 768, 1152, 32, 25600
Offset: 1

Views

Author

Sean A. Irvine, Oct 14 2023

Keywords

Examples

			a(5)=8 because 7^5-1 has divisors {1, 2, 3, 6, 2801, 5602, 8403, 168061}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](7^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0, 7^Range[100]-1]
  • PARI
    a(n) = numdiv(7^n-1);

Formula

a(n) = sigma0(7^n-1) = A000005(A024075(n)).

A366612 Number of divisors of 5^n-1.

Original entry on oeis.org

3, 8, 6, 20, 12, 48, 6, 48, 24, 64, 6, 240, 6, 64, 96, 224, 12, 512, 24, 640, 48, 128, 12, 1152, 192, 64, 384, 320, 24, 6144, 12, 1024, 48, 128, 384, 10240, 24, 512, 48, 6144, 12, 18432, 12, 1280, 3072, 128, 6, 10752, 12, 4096, 192, 960, 24, 81920, 576, 1536
Offset: 1

Views

Author

Sean A. Irvine, Oct 14 2023

Keywords

Examples

			a(3)=6 because 5^3-1 has divisors {1, 2, 4, 31, 62, 124}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](5^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0, 5^Range[100]-1]
  • PARI
    a(n) = numdiv(5^n-1);

Formula

a(n) = sigma0(5^n-1) = A000005(A024049(n)).

A366651 Number of distinct prime divisors of 8^n - 1.

Original entry on oeis.org

1, 2, 2, 4, 3, 4, 3, 6, 3, 6, 4, 8, 4, 6, 6, 9, 5, 6, 4, 11, 6, 8, 4, 12, 7, 7, 6, 12, 6, 11, 3, 12, 8, 10, 10, 12, 6, 8, 9, 15, 5, 11, 5, 14, 10, 8, 6, 17, 5, 13, 8, 16, 8, 12, 10, 17, 7, 10, 6, 21, 5, 7, 9, 15, 8, 15, 6, 19, 9, 20, 7, 18, 7, 12, 14, 16, 9
Offset: 1

Views

Author

Sean A. Irvine, Oct 15 2023

Keywords

Crossrefs

Programs

  • PARI
    for(n = 1, 100, print1(omega(8^n - 1), ", "))

Formula

a(n) = omega(8^n-1) = A001221(A024088(n)).
a(n) = A046800(3*n). - Max Alekseyev, Jan 09 2024

A366575 Number of divisors of 3^n - 1.

Original entry on oeis.org

2, 4, 4, 10, 6, 16, 4, 24, 8, 24, 8, 80, 4, 16, 24, 112, 8, 128, 8, 180, 16, 64, 8, 384, 24, 16, 64, 160, 16, 768, 16, 256, 32, 128, 48, 1280, 8, 64, 96, 864, 16, 768, 8, 640, 384, 32, 32, 14336, 128, 384, 64, 160, 16, 4096, 128, 1536, 128, 256, 8, 23040, 8
Offset: 1

Views

Author

Sean A. Irvine, Oct 13 2023

Keywords

Examples

			a(4)=10 because 3^4-1 has divisors {1, 2, 4, 5, 8, 10, 16, 20, 40, 80}.
		

Crossrefs

Programs

  • Maple
    a:=n->numtheory[tau](3^n-1):
    seq(a(n), n=1..100);
  • Mathematica
    DivisorSigma[0,3^Range[100]-1] (* Paolo Xausa, Oct 15 2023 *)

Formula

a(n) = sigma0(3^n-1) = A000005(A024023).
Showing 1-9 of 9 results.