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.

A033950 Refactorable numbers: number of divisors of k divides k. Also known as tau numbers.

Original entry on oeis.org

1, 2, 8, 9, 12, 18, 24, 36, 40, 56, 60, 72, 80, 84, 88, 96, 104, 108, 128, 132, 136, 152, 156, 180, 184, 204, 225, 228, 232, 240, 248, 252, 276, 288, 296, 328, 344, 348, 360, 372, 376, 384, 396, 424, 441, 444, 448, 450, 468, 472, 480, 488, 492, 504, 516, 536
Offset: 1

Views

Author

Simon Colton (simonco(AT)cs.york.ac.uk)

Keywords

Comments

Kennedy and Cooper show that this sequence has density zero.
Spiro showed more precisely that the number of refactorable numbers less than x is asymptotic to (x/sqrt(log x))(log(log x))^(-1+o(1)). - David Eppstein, Aug 25 2014
Numbers k such that the equation gcd(k,x) = tau(k) has solutions. - Benoit Cloitre, Jun 10 2002
Refactorable numbers are the fixed points of A009230. - Labos Elemer, Nov 18 2002
Let ref(n) denote the characteristic function of the refactorable numbers. Then ref(n) = 1 + floor(n/d(n)) - ceiling(n/d(n)), where d(n) is the number of divisors of n. - Wesley Ivan Hurt, Jan 09 2013, Feb 15 2013
An odd number with an even number of divisors cannot be in the sequence by definition. Therefore all odd terms are squares (A000290). - Ivan N. Ianakiev, Aug 25 2013
A054008(k) = k mod A000005(k). - Reinhard Zumkeller, Sep 17 2014
The only squarefree terms are 1 and 2: if x is a squarefree number that is a product of n distinct primes, its number of divisors is 2^n, so x is refactorable if it contains 2^n as a factor, but that makes it nonsquarefree unless n = 0, 1, hence x = 1, 2. - Waldemar Puszkarz, Jun 10 2016
Every positive integer k occurs as tau(m) for some m in the sequence. If the factorization of k is Product p_i^e_i, then Product p_i^(p_i^e_i-1) has the specified property. For k prime, this is the only such number. - Franklin T. Adams-Watters, Jan 14 2017
Zelinsky (2002) proved that for any j > 0 and for sufficiently large m the number of terms not exceeding m is > j*pi(m), where pi(m) = A000720(m). - Amiram Eldar, Feb 20 2021
Numbers m such that the ratio (number of non-divisors of m)/(number of divisors of m) = A049820(m)/A000005(m) is an integer. - Michel Lagneau, Apr 04 2025

References

  • Richard K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, 2004, Section B12, pp. 102-103.
  • New Scientist, Sep 05 1998, p. 17, para. 3.

Crossrefs

Programs

  • Haskell
    a033950 n = a033950_list !! (n-1)
    a033950_list = [x | x <- [1..], x `mod` a000005 x == 0]
    -- Reinhard Zumkeller, Dec 28 2011
    
  • Magma
    [ n: n in [1..540] | n mod #Divisors(n) eq 0 ]; // Klaus Brockhaus, Apr 29 2009
    
  • Maple
    with(numtheory):
    A033950 := proc(n)
        option remember:
        local k:
        if n=1 then
            return 1:
        else
            for k from procname(n-1)+1 do
                if type(k/tau(k), integer) then
                    return k:
                end if:
            end do:
        end if:
    end proc:
    seq(A033950(n), n=1..56); # Nathaniel Johnston, May 04 2011
  • Mathematica
    Do[If[IntegerQ[n/DivisorSigma[0, n]], Print[n]], {n, 1, 1000}]
    Select[ Range[559], Mod[ #, DivisorSigma[0, # ]] == 0 &]
    Select[Range[550], Divisible[ #, DivisorSigma[0, # ]]&] (* Waldemar Puszkarz, Jun 10 2016 *)
  • PARI
    isA033950(n)=n%numdiv(n)==0 \\ Charles R Greathouse IV, Jun 10 2011
    
  • Python
    from sympy import divisor_count
    print([n for n in range(1, 1001) if not n % divisor_count(n)]) # Indranil Ghosh, May 03 2017

Extensions

More terms from Erich Friedman

A009191 a(n) = gcd(n, d(n)), where d(n) is the number of divisors of n (A000005).

Original entry on oeis.org

1, 2, 1, 1, 1, 2, 1, 4, 3, 2, 1, 6, 1, 2, 1, 1, 1, 6, 1, 2, 1, 2, 1, 8, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 9, 1, 2, 1, 8, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 8, 1, 2, 1, 12, 1, 2, 3, 1, 1, 2, 1, 2, 1, 2, 1, 12, 1, 2, 3, 2, 1, 2, 1, 10, 1, 2, 1, 12, 1, 2, 1, 8, 1, 6, 1, 2, 1, 2, 1, 12, 1, 2, 3, 1, 1, 2, 1, 8, 1
Offset: 1

Views

Author

Keywords

Comments

a(A046642(n)) = 1.
First occurrence of k: 1, 2, 9, 8, 400, 12, 3136, 24, 36, 80, 123904, 60, 692224, 448, 2025, 384, .... Conjecture: each k is present. - Robert G. Wilson v, Mar 27 2013
Conjecture is true. See David A. Corneth's comment in A324553. - Antti Karttunen, Mar 06 2019

Crossrefs

Cf. A046642 (positions of ones), A324553 (position of the first occurrence of each n).

Programs

Formula

a(n) = gcd(n, A000005(n)) = gcd(n, A049820(n)). - Antti Karttunen, Sep 25 2018

A046642 Numbers k such that k and number of divisors d(k) are relatively prime.

Original entry on oeis.org

1, 3, 4, 5, 7, 11, 13, 15, 16, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 47, 49, 51, 53, 55, 57, 59, 61, 64, 65, 67, 69, 71, 73, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 100, 101, 103, 105, 107, 109, 111, 113, 115, 119, 121, 123, 125, 127, 129, 131
Offset: 1

Views

Author

Keywords

Comments

Numbers k such that tau(k)^phi(k) == 1 (mod k), where tau(k) is the number of divisors of k (A000005) and phi(k) is the Euler phi function (A000010). - Michel Lagneau, Nov 20 2012
Density is at least 4/Pi^2 = 0.405... since A056911 is a subsequence, and at most 1/2 since all even numbers in this sequence are squares. The true value seems to be around 0.4504. - Charles R Greathouse IV, Mar 27 2013
They are called anti-tau numbers by Zelinsky (see link) and their density is at least 3/Pi^2 (theorem 57 page 15). - Michel Marcus, May 31 2015
From Amiram Eldar, Feb 21 2021: (Start)
Spiro (1981) proved that the number of terms of this sequence that do not exceed x is c * x + O(sqrt(x)*log(x)^3), where 0 < c < 1 is the asymptotic density of this sequence.
The odd numbers whose number of divisors is a power of 2 (the odd terms of A036537) are terms of this sequence. Their asymptotic density is A327839/A076214 = 0.4212451116... which is a better lower bound than 4/Pi^2 for the asymptotic density of this sequence.
A better upper limit than 0.5 can be obtained by considering the subsequence of odd numbers whose 3-adic valuation is not of the form 3*k-1 (i.e., odd numbers without those k with gcd(k, tau(k)) = 3), whose asymptotic density is 6/13 = 0.46153...
The numbers of terms not exceeding 10^k, for k = 1, 2, ..., are 5, 49, 459, 4535, 45145, 450710, 4504999, 45043234, 450411577, 4504050401, ... (End)

Crossrefs

Programs

Formula

A009191(a(n)) = 1.

A378930 a(n) = n * d(n) / gcd(n, d(n))^2, where d = A000005.

Original entry on oeis.org

1, 1, 6, 12, 10, 6, 14, 2, 3, 10, 22, 2, 26, 14, 60, 80, 34, 3, 38, 30, 84, 22, 46, 3, 75, 26, 108, 42, 58, 60, 62, 48, 132, 34, 140, 4, 74, 38, 156, 5, 82, 84, 86, 66, 30, 46, 94, 120, 147, 75, 204, 78, 106, 108, 220, 7, 228, 58, 118, 5, 122, 62, 42, 448, 260
Offset: 1

Views

Author

Viliam Furík, Dec 11 2024

Keywords

Crossrefs

Programs

  • Maple
    a:= n-> (d-> n*d/igcd(n,d)^2)(numtheory[tau](n)):
    seq(a(n), n=1..65);  # Alois P. Heinz, Dec 11 2024
  • Mathematica
    a[n_]:= n * DivisorSigma[0,n]/GCD[n, DivisorSigma[0,n]]^2; Array[a,65] (* Stefano Spezia, Dec 11 2024 *)
  • PARI
    a(n) = my(d = numdiv(n)); n * d / gcd(n, d)^2; \\ Amiram Eldar, Dec 11 2024

Formula

a(n) = A038040(n)/A009191(n)^2.
a(n) = A009230(n)/A009191(n).

A306667 Numbers m such that lcm(tau(m), m) = sigma(m) where sigma(k) = the sum of the divisors of k (A000203) and tau(k) = the number of the divisors of k (A000005).

Original entry on oeis.org

1, 6, 32760, 51001180160, 54530444405217553992377326508106948362108928, 133821156044600922812153118065015159487725568, 42274041475824304453686528060845522019324411248640, 48949643430560436794021629524876790263031553747866371344635527168
Offset: 1

Views

Author

Jaroslav Krizek, Mar 04 2019

Keywords

Comments

Numbers m such that A009230(m) = A000203(m).
Subsequence of multiply-perfect numbers (A007691).

Examples

			6 is a term because lcm(tau(6), 6) = lcm(4, 6) = 12 = sigma(6).
		

Crossrefs

Cf. A069810 (gcd(k, sigma(k)) = tau(k)).

Programs

  • Magma
    [n: n in [1..100000] | LCM(NumberOfDivisors(n), n) eq SumOfDivisors(n)]

Extensions

a(4)-a(8) computed from A007691 data by Giovanni Resta, Mar 05 2019

A334782 a(n) = Sum_{d|n} lcm(d, tau(d)).

Original entry on oeis.org

1, 3, 7, 15, 11, 21, 15, 23, 16, 33, 23, 45, 27, 45, 77, 103, 35, 48, 39, 105, 105, 69, 47, 77, 86, 81, 124, 141, 59, 231, 63, 199, 161, 105, 165, 108, 75, 117, 189, 153, 83, 315, 87, 213, 176, 141, 95, 397, 162, 258, 245, 249, 107, 372, 253, 205, 273, 177
Offset: 1

Views

Author

Jaroslav Krizek, May 10 2020

Keywords

Examples

			a(6) = lcm(1, tau(1)) + lcm(2, tau(2)) + lcm(3, tau(3)) + lcm(6, tau(6)) = lcm(1, 1) + lcm(2, 2) + lcm(3, 2) + lcm(6, 4) = 1 + 2 + 6 + 12 = 21.
		

Crossrefs

Cf. A322979 (Sum_{d|n} gcd(d, tau(d))), A334783 (Sum_{d|n} lcm(d, sigma(d))).
Cf. A000005 (tau(n)), A000203 (sigma(n)), A009230 (lcm(n, tau(n))).

Programs

  • Magma
    [&+[LCM(d, #Divisors(d)): d in Divisors(n)]: n in [1..100]]
    
  • Mathematica
    a[n_] := DivisorSum[n, LCM[#, DivisorSigma[0, #]] &]; Array[a, 100] (* Amiram Eldar, May 10 2020 *)
  • PARI
    a(n) = sumdiv(n, d, lcm(d, numdiv(d))); \\ Michel Marcus, May 10 2020

Formula

a(p) = 2p + 1 for p = odd primes (A065091).

A328651 Composite k for which lcm(k, phi(k)) + lcm(k, tau(k)) = lcm(k, sigma(k)).

Original entry on oeis.org

135, 546, 672, 9585, 24570, 51510, 63855, 190008, 251370, 323730, 372438, 486180, 510570, 723550, 819000, 1058910, 1282365, 1284192, 1356030, 3506390, 5416200, 5604480, 6298625, 15593760, 17813250, 18009000, 20740590, 26759370, 27027000, 27081000, 29795040
Offset: 1

Views

Author

Marius A. Burtea, Oct 23 2019

Keywords

Comments

Composite numbers k verifying equation A009230(k) + A009262(k) = A009242(k).
For any prime number p >= 3 the equality lcm(k, phi(k)) + lcm(k, tau(k)) = lcm(k, sigma(k)) is satisfied.
The sequence terms are the composite numbers for which the equality is true.

Examples

			For k = 135 = 3^3 * 5, tau(k) = 4 * 2 = 2^3, phi(k) = 2 * 3^2 * 4 = 2^3 * 3^2 , sigma(k) = 2^4 * 3 * 5, lcm(k, tau(k)) + lcm(k, phi(k)) =  2^3 * 3^3 * 5 + 2^3 * 3^3 * 5 = 2^4 * 3^3 * 5 and lcm(k, sigma(k)) = lcm(3^3 * 5, 2^4 * 3 * 5) = 2^4 * 3^3 * 5.
		

Crossrefs

Programs

  • Magma
    [k: k in [1..6000000]| not IsPrime(k) and Lcm(k,NumberOfDivisors(k))+Lcm(k,EulerPhi(k)) eq Lcm(k,SumOfDivisors(k))];
    
  • Mathematica
    aQ[n_] := CompositeQ[n] && LCM[n, EulerPhi[n]] + LCM[n, DivisorSigma[0, n]] == LCM[n, DivisorSigma[1, n]]; Select[Range[3*10^6], aQ] (* Amiram Eldar, Oct 23 2019 *)
  • PARI
    isok(k) = !isprime(k) && (lcm(k, numdiv(k)) + lcm(k, eulerphi(k)) == lcm(k, sigma(k))); \\ Michel Marcus, Oct 24 2019

A334795 a(n) = Product_{d|n} lcm(d, tau(d)) where tau(k) is the number of divisors of k (A000005).

Original entry on oeis.org

1, 2, 6, 24, 10, 144, 14, 192, 54, 400, 22, 20736, 26, 784, 3600, 15360, 34, 23328, 38, 288000, 7056, 1936, 46, 3981312, 750, 2704, 5832, 790272, 58, 207360000, 62, 1474560, 17424, 4624, 19600, 120932352, 74, 5776, 24336, 92160000, 82, 796594176, 86, 3066624
Offset: 1

Views

Author

Jaroslav Krizek, May 12 2020

Keywords

Comments

From Robert Israel, Jun 25 2020: (Start)
If p is an odd prime, a(p) = 2*p.
If p is a prime > 3, a(p^2) = 6*p^3.
If p and q are distinct odd primes, a(p*q) = 16*p^2*q^2. (End)

Examples

			a(6) = lcm(1, tau(1)) * lcm(2, tau(2)) * lcm(3, tau(3)) * lcm(6, tau(6)) = lcm(1, 1) * lcm(2, 2) * lcm(3, 2) * lcm(6, 4) = 1 * 2 * 6 * 12 = 144.
		

Crossrefs

Cf. A334782 (Sum_{d|n} lcm(d, tau(d))), A334664 (Product_{d|n} gcd(d, tau(d))).
Cf. A000005 (tau(n)), A009230 (lcm(n, tau(n))).

Programs

  • Magma
    [&*[LCM(d, #Divisors(d)): d in Divisors(n)]: n in [1..100]]
    
  • Maple
    g:= d -> ilcm(d, numtheory:-tau(d)):
    f:= n -> mul(g(d), d = numtheory:-divisors(n)):
    map(f, [$1..100]); # Robert Israel, Jun 25 2020
  • Mathematica
    a[n_] := Product[LCM[d, DivisorSigma[0, d]], {d, Divisors[n]}]; Array[a, 100] (* Amiram Eldar, May 12 2020 *)
  • PARI
    a(n) = my(d=divisors(n)); prod(k=1, #d, lcm(d[k], numdiv(d[k]))); \\ Michel Marcus, May 12 2020

Formula

a(p) = 2p for p = odd primes (A065091).

A258468 a(n) = lcm(n, n - tau(n)).

Original entry on oeis.org

0, 0, 3, 4, 15, 6, 35, 8, 18, 30, 99, 12, 143, 70, 165, 176, 255, 36, 323, 140, 357, 198, 483, 48, 550, 286, 621, 308, 783, 330, 899, 416, 957, 510, 1085, 108, 1295, 646, 1365, 160, 1599, 714, 1763, 836, 585, 966, 2115, 912, 2254, 1100, 2397, 1196
Offset: 1

Views

Author

Keywords

Comments

For tau see A000005.

Examples

			a(5) = 15, since tau(5) = 2, lcm(5, 3) = 15.
a(7) = 35, since tau(7) = 2, lcm(7, 5) = 35.
a(10) = 30, since tau(10) = 4, lcm (10, 6) = 30.
		

Crossrefs

Programs

  • Mathematica
    Table[LCM[n, n - DivisorSigma[0, n]], {n, 200}]
  • PARI
    vector(100, n, lcm(n, n-numdiv(n))) \\ Michel Marcus, May 31 2015

Formula

a(n) = lcm(n, n - tau(n)).
a(n) = n * (n - 2) = A005563(n-2) if n is prime.

Extensions

Edited by Wolfdieter Lang, Jun 16 2015
Showing 1-9 of 9 results.