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.

A363920 a(n) = n^(tpf(n) * dpf(n)), where tpf(n) is the total number of prime factors of n if n >= 2 and otherwise = 0; dpf(n) is the number of distinct prime factors of n if n >= 2 and otherwise = 0.

Original entry on oeis.org

1, 1, 2, 3, 16, 5, 1296, 7, 512, 81, 10000, 11, 2985984, 13, 38416, 50625, 65536, 17, 34012224, 19, 64000000, 194481, 234256, 23, 110075314176, 625, 456976, 19683, 481890304, 29, 19683000000000, 31, 33554432, 1185921, 1336336, 1500625, 2821109907456, 37, 2085136
Offset: 0

Views

Author

Peter Luschny, Jul 16 2023

Keywords

Crossrefs

Programs

  • Maple
    with(numtheory):
    dpf := n -> ifelse(n = 0, 0, nops(factorset(n))): # dpf = [0] U [A001221].
    tpf := n -> ifelse(n = 0, 0, bigomega(n)):        # tpf = [0] U [A001222].
    A363920 := n -> n^(tpf(n) * dpf(n)):
    seq(A363920(n), n = 0..38);
  • PARI
    dpf(n, f) = if (n>=2, omega(f), 0);
    tpf(n, f) = if (n>=2, bigomega(f), 0);
    a(n) = my(f=factor(n)); n^(tpf(n,f) * dpf(n,f)); \\ Michel Marcus, Jul 27 2023

Formula

a(n) = n <=> n term of A000040(n) prepended with 1, n = 1, 2, 3, 5, 7, ...
a(n) != n <=> n term of A002808(n) prepended with 0, n = 0, 4, 6, 8, ...
Moebius(a(n)) = -[n is prime] for n >= 2, where [ ] denotes the Iverson bracket.

A304404 If n = Product (p_j^k_j) then a(n) = Product (n/p_j^k_j).

Original entry on oeis.org

1, 1, 1, 1, 1, 6, 1, 1, 1, 10, 1, 12, 1, 14, 15, 1, 1, 18, 1, 20, 21, 22, 1, 24, 1, 26, 1, 28, 1, 900, 1, 1, 33, 34, 35, 36, 1, 38, 39, 40, 1, 1764, 1, 44, 45, 46, 1, 48, 1, 50, 51, 52, 1, 54, 55, 56, 57, 58, 1, 3600, 1, 62, 63, 1, 65, 4356, 1, 68, 69, 4900, 1, 72, 1, 74, 75
Offset: 1

Views

Author

Ilya Gutkovskiy, May 12 2018

Keywords

Examples

			a(60) = a(2^2*3*5) = (60/2^2) * (60/3) * (60/5) = 15 * 20 * 12 = 3600.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Times @@ (n/#[[1]]^#[[2]] & /@ FactorInteger[n]); Table[a[n], {n, 75}]
    Table[n^(PrimeNu[n] - 1), {n, 75}]
  • PARI
    A304404(n) = (n^(omega(n)-1)); \\ Antti Karttunen, Aug 06 2018
    
  • Python
    from sympy.ntheory.factor_ import primenu
    def A304404(n): return int(n**(primenu(n)-1)) # Chai Wah Wu, Jul 12 2023

Formula

a(n) = n^(omega(n)-1), where omega() = A001221.
a(n) = A062509(n)/n.
Showing 1-2 of 2 results.