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

A037445 Number of infinitary divisors (or i-divisors) of n.

Original entry on oeis.org

1, 2, 2, 2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 4, 2, 2, 4, 2, 4, 4, 4, 2, 8, 2, 4, 4, 4, 2, 8, 2, 4, 4, 4, 4, 4, 2, 4, 4, 8, 2, 8, 2, 4, 4, 4, 2, 4, 2, 4, 4, 4, 2, 8, 4, 8, 4, 4, 2, 8, 2, 4, 4, 4, 4, 8, 2, 4, 4, 8, 2, 8, 2, 4, 4, 4, 4, 8, 2, 4, 2, 4, 2, 8, 4, 4, 4, 8, 2, 8, 4, 4, 4, 4, 4, 8, 2, 4, 4, 4, 2, 8, 2, 8, 8
Offset: 1

Views

Author

Keywords

Comments

A divisor of n is called infinitary if it is a product of divisors of the form p^{y_a 2^a}, where p^y is a prime power dividing n and sum_a y_a 2^a is the binary representation of y.
The smallest number m with exactly 2^n infinitary divisors is A037992(n); for these values m, a(m) increases also to a new record. - Bernard Schott, Mar 09 2023

Examples

			For n = 8, n = 2^3 = 2^"11" (writing 3 in binary) so the infinitary divisors are 2^"00" = 1, 2^"01" = 2, 2^"10" = 4 and 2^"11" = 8, so a(8) = 4.
For n = 90, n = 2*5*9 where 2,5,9 are in A050376, so a(90) = 2^3 = 8.
		

Crossrefs

Programs

  • Haskell
    a037445 = product . map (a000079 . a000120) . a124010_row
    -- Reinhard Zumkeller, Mar 19 2013
    
  • Maple
    A037445 := proc(n)
        local a,p;
        a := 1 ;
        for p in ifactors(n)[2] do
            a := a*2^wt(p[2]) ;
        end do:
        a ;
    end proc: # R. J. Mathar, May 16 2016
  • Mathematica
    Table[Length@((Times @@ (First[it]^(#1 /. z -> List)) & ) /@
    Flatten[Outer[z, Sequence @@ bitty /@
    Last[it = Transpose[FactorInteger[k]]], 1]]), {k, 2, 240}]
    bitty[k_] := Union[Flatten[Outer[Plus, Sequence @@ ({0, #1} & ) /@ Union[2^Range[0, Floor[Log[2, k]]]*Reverse[IntegerDigits[k, 2]]]]]]
    y[n_] := Select[Range[0, n], BitOr[n, # ] == n & ] divisors[Infinity][1] := {1}
    divisors[Infinity][n_] := Sort[Flatten[Outer[Times, Sequence @@ (FactorInteger[n] /. {p_, m_Integer} :> p^y[m])]]] Length /@ divisors[Infinity] /@ Range[105] (* Paul Abbott (paul(AT)physics.uwa.edu.au), Apr 29 2005 *)
    a[1] = 1; a[n_] := Times @@ Flatten[ 2^DigitCount[#, 2, 1]&  /@ FactorInteger[n][[All, 2]] ]; Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Aug 19 2013, after Reinhard Zumkeller *)
  • PARI
    A037445(n) = factorback(apply(a -> 2^hammingweight(a), factorint(n)[,2])) \\ Andrew Lelechenko, May 10 2014
    
  • Python
    from sympy import factorint
    def wt(n): return bin(n).count("1")
    def a(n):
        f=factorint(n)
        return 2**sum([wt(f[i]) for i in f]) # Indranil Ghosh, May 30 2017
  • Scheme
    (define (A037445 n) (if (= 1 n) n (* (A001316 (A067029 n)) (A037445 (A028234 n))))) ;; Antti Karttunen, May 28 2017
    

Formula

Multiplicative with a(p^e) = 2^A000120(e). - David W. Wilson, Sep 01 2001
Let n = q_1*...*q_k, where q_1,...,q_k are different terms of A050376. Then a(n) = 2^k (the number of subsets of a set with k elements is 2^k). - Vladimir Shevelev, Feb 19 2011.
a(n) = Product_{k=1..A001221(n)} A000079(A000120(A124010(n,k))). - Reinhard Zumkeller, Mar 19 2013
From Antti Karttunen, May 28 2017: (Start)
a(n) = A286575(A156552(n)). [Because multiplicative with a(p^e) = A001316(e).]
a(n) = 2^A064547(n). (End)
a(A037992(n)) = 2^n. - Bernard Schott, Mar 10 2023

Extensions

Corrected and extended by Naohiro Nomoto, Jun 21 2001

A049417 a(n) = isigma(n): sum of infinitary divisors of n.

Original entry on oeis.org

1, 3, 4, 5, 6, 12, 8, 15, 10, 18, 12, 20, 14, 24, 24, 17, 18, 30, 20, 30, 32, 36, 24, 60, 26, 42, 40, 40, 30, 72, 32, 51, 48, 54, 48, 50, 38, 60, 56, 90, 42, 96, 44, 60, 60, 72, 48, 68, 50, 78, 72, 70, 54, 120, 72, 120, 80, 90, 60, 120, 62, 96, 80, 85, 84, 144, 68, 90
Offset: 1

Views

Author

Yasutoshi Kohmoto, Dec 11 1999

Keywords

Comments

A divisor of n is called infinitary if it is a product of divisors of the form p^{y_a 2^a}, where p^y is a prime power dividing n and sum_a y_a 2^a is the binary representation of y.
This sequence is an infinitary analog of the Dedekind psi function A001615. Indeed, a(n) = Product_{q in Q_n}(q+1) = n*Product_{q in Q_n} (1+1/q), where {q} are terms of A050376 and Q_n is the set of distinct q's whose product is n. - Vladimir Shevelev, Apr 01 2014
1/a(n) is the asymptotic density of numbers that are infinitarily divided by n (i.e., numbers whose set of infinitary divisors includes n). - Amiram Eldar, Jul 23 2025

Examples

			If n = 8: 8 = 2^3 = 2^"11" (writing 3 in binary) so the infinitary divisors are 2^"00" = 1, 2^"01" = 2, 2^"10" = 4 and 2^"11" = 8; so a(8) = 1+2+4+8 = 15.
n = 90 = 2*5*9, where 2, 5, 9 are in A050376; so a(n) = 3*6*10 = 180. - _Vladimir Shevelev_, Feb 19 2011
		

Crossrefs

Cf. A049418 (3-infinitary), A074847 (4-infinitary), A097863 (5-infinitary).

Programs

  • Haskell
    a049417 1 = 1
    a049417 n = product $ zipWith f (a027748_row n) (a124010_row n) where
       f p e = product $ zipWith div
               (map (subtract 1 . (p ^)) $
                    zipWith (*) a000079_list $ map (+ 1) $ a030308_row e)
               (map (subtract 1 . (p ^)) a000079_list)
    -- Reinhard Zumkeller, Sep 18 2015
    
  • Maple
    isidiv := proc(d, n)
        local n2, d2, p, j;
        if n mod d <> 0 then
            return false;
        end if;
        for p in numtheory[factorset](n) do
            padic[ordp](n,p) ;
            n2 := convert(%, base, 2) ;
            padic[ordp](d,p) ;
            d2 := convert(%, base, 2) ;
            for j from 1 to nops(d2) do
                if op(j, n2) = 0 and op(j, d2) <> 0 then
                    return false;
                end if;
            end do:
        end do;
        return true;
    end proc:
    idivisors := proc(n)
        local a, d;
        a := {} ;
        for d in numtheory[divisors](n) do
            if isidiv(d, n) then
                a := a union {d} ;
            end if;
        end do:
        a ;
    end proc:
    A049417 := proc(n)
        local d;
        add(d, d=idivisors(n)) ;
    end proc:
    seq(A049417(n),n=1..100) ; # R. J. Mathar, Feb 19 2011
  • Mathematica
    bitty[k_] := Union[Flatten[Outer[Plus, Sequence @@ ({0, #1} & ) /@ Union[2^Range[0, Floor[Log[2, k]]]*Reverse[IntegerDigits[k, 2]]]]]]; Table[Plus@@((Times @@ (First[it]^(#1 /. z -> List)) & ) /@ Flatten[Outer[z, Sequence @@ bitty /@ Last[it = Transpose[FactorInteger[k]]], 1]]), {k, 2, 120}]
    (* Second program: *)
    a[n_] := If[n == 1, 1, Sort @ Flatten @ Outer[ Times, Sequence @@ (FactorInteger[n] /. {p_, m_Integer} :> p^Select[Range[0, m], BitOr[m, #] == m &])]] // Total;
    Array[a, 100] (* Jean-François Alcover, Mar 23 2020, after Paul Abbott in A077609 *)
  • PARI
    A049417(n) = {my(b, f=factorint(n)); prod(k=1, #f[,2], b = binary(f[k,2]); prod(j=1, #b, if(b[j], 1+f[k,1]^(2^(#b-j)), 1)))} \\ Andrew Lelechenko, Apr 22 2014
    
  • PARI
    isigma(n)=vecprod([vecprod([f[1]^2^k+1|k<-[0..exponent(f[2])], bittest(f[2],k)])|f<-factor(n)~]) \\ M. F. Hasler, Oct 20 2022
    
  • Python
    from math import prod
    from sympy import factorint
    def A049417(n): return prod(p**(1<Chai Wah Wu, Jul 11 2024

Formula

Multiplicative: If e = Sum_{k >= 0} d_k 2^k (binary representation of e), then a(p^e) = Product_{k >= 0} (p^(2^k*{d_k+1}) - 1)/(p^(2^k) - 1). - Christian G. Bower and Mitch Harris, May 20 2005 [This means there is a factor p^2^k + 1 if d_k = 1, otherwise the factor is 1. - M. F. Hasler, Oct 20 2022]
Let n = Product(q_i) where {q_i} is a set of distinct terms of A050376. Then a(n) = Product(q_i + 1). - Vladimir Shevelev, Feb 19 2011
If n is squarefree, then a(n) = A001615(n). - Vladimir Shevelev, Apr 01 2014
a(n) = Sum_{k>=1} A077609(n,k). - R. J. Mathar, Oct 04 2017
a(n) = A126168(n)+n. - R. J. Mathar, Oct 05 2017
Multiplicative with a(p^e) = Product{k >= 0, e_k = 1} p^2^k + 1, where e = Sum e_k 2^k, i.e., e_k is bit k of e. - M. F. Hasler, Oct 20 2022
a(n) = iphi(n^2)/iphi(n), where iphi(n) = A091732(n). - Amiram Eldar, Sep 21 2024

Extensions

More terms from Wouter Meeussen, Sep 02 2001

A361811 Smallest members of infinitary sociable quadruples.

Original entry on oeis.org

1026, 10098, 10260, 41800, 45696, 100980, 241824, 685440, 4938136, 13959680, 14958944, 25581600, 28158165, 32440716, 36072320, 55204500, 74062944, 81128632, 149589440, 178327008, 192793770, 209524210, 283604220, 319848642, 498215416, 581112000, 740629440, 1236402232
Offset: 1

Views

Author

Amiram Eldar, Mar 25 2023

Keywords

Comments

The first 8 terms were found by Cohen (1990).

Examples

			1026 is a term since the iterations of the sum of aliquot infinitary divisors function (A126168) that start with 1026 are cyclic with period 4: 1026, 1374, 1386, 1494, 1026, ..., and 1026 is the smallest member of the quadruple.
The first five quadruples are {1026, 1374, 1386, 1494}, {10098, 15822, 19458, 15102}, {10260, 13740, 13860, 14940}, {41800, 51800, 66760, 83540}, {45696, 101184, 94656, 88944}.
		

Crossrefs

Cf. A007357 (period 1), A126169 and A126170 (period 2).
Subsequence of A004607 (all cycles of length > 2).
Similar sequences: A090615 (all divisors), A319902 (unitary), A319915 (bi-unitary).

Programs

  • Mathematica
    f[p_, e_] := Module[{b = IntegerDigits[e, 2], m}, m = Length[b]; Product[If[b[[j]]>0, 1 + p^(2^(m-j)), 1], {j, 1, m}]]; infs[n_] := Times @@ f @@@ FactorInteger[n] - n;  infs[1] = 0; seq[n_] := NestList[infs, n, 4][[2;; 5]] ; q[n_] := Module[{s = seq[n]}, n == Min[s] && Count[s, n] == 1]; Select[Range[10^6], q]
  • PARI
    infs(n) = {my(f = factor(n), b); prod(i=1, #f~, b = binary(f[i, 2]); prod(k=1, #b, if(b[k], f[i, 1]^(2^(#b-k)) + 1, 1))) - n; }
    is(n) = {my(m = n); for(k = 1, 4, m = infs(m); if(k < 4 && m <= n, return(0))); m == n; }
Showing 1-3 of 3 results.