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

A334167 a(n) is the number of divisors of n^n-1.

Original entry on oeis.org

2, 4, 8, 12, 16, 16, 96, 128, 48, 16, 256, 48, 32, 128, 128, 40, 512, 12, 2048, 768, 256, 64, 6144, 4096, 768, 512, 4096, 768, 24576, 16, 6144, 768, 8192, 1024, 262144, 1152, 256, 1024, 49152, 256, 65536, 64, 24576, 196608, 384, 32, 393216, 327680, 12288, 24576
Offset: 2

Views

Author

Todor Szimeonov, Apr 17 2020

Keywords

Comments

25 values of the first 40 are powers of 2.

Crossrefs

Programs

  • Mathematica
    a[n_] := DivisorSigma[0, n^n - 1]; a /@ Range[2, 45] (* Giovanni Resta, Apr 17 2020 *)
  • PARI
    a(n) = numdiv(n^n-1); \\ Michel Marcus, Apr 17 2020

Formula

a(n) = A000005(A048861(n)).

Extensions

More terms from Giovanni Resta, Apr 17 2020

A309941 Number of prime factors of n^n - 1, counted with multiplicity.

Original entry on oeis.org

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

Views

Author

Hugo Pfoertner, Aug 24 2019

Keywords

Examples

			a(3) = 2: 3^3 - 1 = 26 = 2 * 13.
a(5) = 4: 5^5 - 1 = 3124 = 2^2 * 11 * 71.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := PrimeOmega[n^n - 1]; Array[a, 45, 2] (* Amiram Eldar, Jul 04 2024 *)
  • PARI
    for(k=2, 50, print1(bigomega(k^k-1),", "))
Showing 1-2 of 2 results.