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-10 of 12 results. Next

A001227 Number of odd divisors of n.

Original entry on oeis.org

1, 1, 2, 1, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 4, 1, 2, 3, 2, 2, 4, 2, 2, 2, 3, 2, 4, 2, 2, 4, 2, 1, 4, 2, 4, 3, 2, 2, 4, 2, 2, 4, 2, 2, 6, 2, 2, 2, 3, 3, 4, 2, 2, 4, 4, 2, 4, 2, 2, 4, 2, 2, 6, 1, 4, 4, 2, 2, 4, 4, 2, 3, 2, 2, 6, 2, 4, 4, 2, 2, 5, 2, 2, 4, 4, 2, 4, 2, 2, 6, 4, 2, 4, 2, 4, 2, 2, 3, 6, 3, 2, 4, 2, 2, 8
Offset: 1

Views

Author

Keywords

Comments

Also (1) number of ways to write n as difference of two triangular numbers (A000217), see A136107; (2) number of ways to arrange n identical objects in a trapezoid. - Tom Verhoeff
Also number of partitions of n into consecutive positive integers including the trivial partition of length 1 (e.g., 9 = 2+3+4 or 4+5 or 9 so a(9)=3). (Useful for cribbage players.) See A069283. - Henry Bottomley, Apr 13 2000
This has been described as Sylvester's theorem, but to reduce ambiguity I suggest calling it Sylvester's enumeration. - Gus Wiseman, Oct 04 2022
a(n) is also the number of factors in the factorization of the Chebyshev polynomial of the first kind T_n(x). - Yuval Dekel (dekelyuval(AT)hotmail.com), Aug 28 2003
Number of factors in the factorization of the polynomial x^n+1 over the integers. See also A000005. - T. D. Noe, Apr 16 2003
a(n) = 1 if and only if n is a power of 2 (see A000079). - Lekraj Beedassy, Apr 12 2005
Number of occurrences of n in A049777. - Philippe Deléham, Jun 19 2005
For n odd, n is prime if and only if a(n) = 2. - George J. Schaeffer (gschaeff(AT)andrew.cmu.edu), Sep 10 2005
Also number of partitions of n such that if k is the largest part, then each of the parts 1,2,...,k-1 occurs exactly once. Example: a(9)=3 because we have [3,3,2,1],[2,2,2,2,1] and [1,1,1,1,1,1,1,1,1]. - Emeric Deutsch, Mar 07 2006
Also the number of factors of the n-th Lucas polynomial. - T. D. Noe, Mar 09 2006
Lengths of rows of triangle A182469;
Denoted by Delta_0(n) in Glaisher 1907. - Michael Somos, May 17 2013
Also the number of partitions p of n into distinct parts such that max(p) - min(p) < length(p). - Clark Kimberling, Apr 18 2014
Row sums of triangle A247795. - Reinhard Zumkeller, Sep 28 2014
Row sums of triangle A237048. - Omar E. Pol, Oct 24 2014
A069288(n) <= a(n). - Reinhard Zumkeller, Apr 05 2015
A000203, A000593 and this sequence have the same parity: A053866. - Omar E. Pol, May 14 2016
a(n) is equal to the number of ways to write 2*n-1 as (4*x + 2)*y + 4*x + 1 where x and y are nonnegative integers. Also a(n) is equal to the number of distinct values of k such that k/(2*n-1) + k divides (k/(2*n-1))^(k/(2*n-1)) + k, (k/(2*n-1))^k + k/(2*n-1) and k^(k/(2*n-1)) + k/(2*n-1). - Juri-Stepan Gerasimov, May 23 2016, Jul 15 2016
Also the number of odd divisors of n*2^m for m >= 0. - Juri-Stepan Gerasimov, Jul 15 2016
a(n) is odd if and only if n is a square or twice a square. - Juri-Stepan Gerasimov, Jul 17 2016
a(n) is also the number of subparts in the symmetric representation of sigma(n). For more information see A279387 and A237593. - Omar E. Pol, Nov 05 2016
a(n) is also the number of partitions of n into an odd number of equal parts. - Omar E. Pol, May 14 2017 [This follows from the g.f. Sum_{k >= 1} x^k/(1-x^(2*k)). - N. J. A. Sloane, Dec 03 2020]

Examples

			G.f. = q + q^2 + 2*q^3 + q^4 + 2*q^5 + 2*q^6 + 2*q^7 + q^8 + 3*q^9 + 2*q^10 + ...
From _Omar E. Pol_, Nov 30 2020: (Start)
For n = 9 there are three odd divisors of 9; they are [1, 3, 9]. On the other hand there are three partitions of 9 into consecutive parts: they are [9], [5, 4] and [4, 3, 2], so a(9) = 3.
Illustration of initial terms:
                              Diagram
   n   a(n)                         _
   1     1                        _|1|
   2     1                      _|1 _|
   3     2                    _|1  |1|
   4     1                  _|1   _| |
   5     2                _|1    |1 _|
   6     2              _|1     _| |1|
   7     2            _|1      |1  | |
   8     1          _|1       _|  _| |
   9     3        _|1        |1  |1 _|
  10     2      _|1         _|   | |1|
  11     2    _|1          |1   _| | |
  12     2   |1            |   |1  | |
...
a(n) is the number of horizontal line segments in the n-th level of the diagram. For more information see A286001. (End)
		

References

  • B. C. Berndt, Ramanujan's Notebooks Part V, Springer-Verlag, see p. 487 Entry 47.
  • L. E. Dickson, History of the Theory of Numbers. Carnegie Institute Public. 256, Washington, DC, Vol. 1, 1919; Vol. 2, 1920; Vol. 3, 1923, see vol. 1, p. 306.
  • J. W. L. Glaisher, On the representations of a number as the sum of two, four, six, eight, ten, and twelve squares, Quart. J. Math. 38 (1907), 1-62 (see p. 4).
  • Ronald. L. Graham, Donald E. Knuth, and Oren Patashnik, Concrete Mathematics, 2nd ed. (Addison-Wesley, 1994), see exercise 2.30 on p. 65.
  • P. A. MacMahon, Combinatory Analysis, Cambridge Univ. Press, London and New York, Vol. 1, 1915 and Vol. 2, 1916; see vol. 2, p 28.

Crossrefs

If this sequence counts gapless sets by sum (by Sylvester's enumeration), these sets are ranked by A073485 and A356956. See also A055932, A066311, A073491, A107428, A137921, A333217, A356224, A356841, A356845.
Dirichlet inverse is A327276.

Programs

  • Haskell
    a001227 = sum . a247795_row
    -- Reinhard Zumkeller, Sep 28 2014, May 01 2012, Jul 25 2011
    
  • Magma
    [NumberOfDivisors(n)/Valuation(2*n, 2): n in [1..100]]; // Vincenzo Librandi, Jun 02 2019
    
  • Maple
    for n from 1 by 1 to 100 do s := 0: for d from 1 by 2 to n do if n mod d = 0 then s := s+1: fi: od: print(s); od:
    A001227 := proc(n) local a,d;
        a := 1 ;
        for d in ifactors(n)[2] do
            if op(1,d) > 2 then
                a := a*(op(2,d)+1) ;
            end if;
        end do:
        a ;
    end proc: # R. J. Mathar, Jun 18 2015
  • Mathematica
    f[n_] := Block[{d = Divisors[n]}, Count[ OddQ[d], True]]; Table[ f[n], {n, 105}] (* Robert G. Wilson v, Aug 27 2004 *)
    Table[Total[Mod[Divisors[n], 2]],{n,105}] (* Zak Seidov, Apr 16 2010 *)
    f[n_] := Block[{d = DivisorSigma[0, n]}, If[ OddQ@ n, d, d - DivisorSigma[0, n/2]]]; Array[f, 105] (* Robert G. Wilson v *)
    a[ n_] := Sum[  Mod[ d, 2], { d, Divisors[ n]}]; (* Michael Somos, May 17 2013 *)
    a[ n_] := DivisorSum[ n, Mod[ #, 2] &]; (* Michael Somos, May 17 2013 *)
    Count[Divisors[#],?OddQ]&/@Range[110] (* _Harvey P. Dale, Feb 15 2015 *)
    (* using a262045 from A262045 to compute a(n) = number of subparts in the symmetric representation of sigma(n) *)
    (* cl = current level, cs = current subparts count *)
    a001227[n_] := Module[{cs=0, cl=0, i, wL, k}, wL=a262045[n]; k=Length[wL]; For[i=1, i<=k, i++, If[wL[[i]]>cl, cs++; cl++]; If[wL[[i]]Hartmut F. W. Hoft, Dec 16 2016 *)
    a[n_] := DivisorSigma[0, n / 2^IntegerExponent[n, 2]]; Array[a, 100] (* Amiram Eldar, Jun 12 2022 *)
  • PARI
    {a(n) = sumdiv(n, d, d%2)}; /* Michael Somos, Oct 06 2007 */
    
  • PARI
    {a(n) = direuler( p=2, n, 1 / (1 - X) / (1 - kronecker( 4, p) * X))[n]}; /* Michael Somos, Oct 06 2007 */
    
  • PARI
    a(n)=numdiv(n>>valuation(n,2)) \\ Charles R Greathouse IV, Mar 16 2011
    
  • PARI
    a(n)=sum(k=1,round(solve(x=1,n,x*(x+1)/2-n)),(k^2-k+2*n)%(2*k)==0) \\ Charles R Greathouse IV, May 31 2013
    
  • PARI
    a(n)=sumdivmult(n,d,d%2) \\ Charles R Greathouse IV, Aug 29 2013
    
  • Python
    from functools import reduce
    from operator import mul
    from sympy import factorint
    def A001227(n): return reduce(mul,(q+1 for p, q in factorint(n).items() if p > 2),1) # Chai Wah Wu, Mar 08 2021
  • SageMath
    def A001227(n): return len([1 for d in divisors(n) if is_odd(d)])
    [A001227(n) for n in (1..80)]  # Peter Luschny, Feb 01 2012
    

Formula

Dirichlet g.f.: zeta(s)^2*(1-1/2^s).
Comment from N. J. A. Sloane, Dec 02 2020: (Start)
By counting the odd divisors f n in different ways, we get three different ways of writing the ordinary generating function. It is:
A(x) = x + x^2 + 2*x^3 + x^4 + 2*x^5 + 2*x^6 + 2*x^7 + x^8 + 3*x^9 + 2*x^10 + ...
= Sum_{k >= 1} x^(2*k-1)/(1-x^(2*k-1))
= Sum_{k >= 1} x^k/(1-x^(2*k))
= Sum_{k >= 1} x^(k*(k+1)/2)/(1-x^k) [Ramanujan, 2nd notebook, p. 355.].
(This incorporates comments from Vladeta Jovovic, Oct 16 2002 and Michael Somos, Oct 30 2005.) (End)
G.f.: x/(1-x) + Sum_{n>=1} x^(3*n)/(1-x^(2*n)), also L(x)-L(x^2) where L(x) = Sum_{n>=1} x^n/(1-x^n). - Joerg Arndt, Nov 06 2010
a(n) = A000005(n)/(A007814(n)+1) = A000005(n)/A001511(n).
Multiplicative with a(p^e) = 1 if p = 2; e+1 if p > 2. - David W. Wilson, Aug 01 2001
a(n) = A000005(A000265(n)). - Lekraj Beedassy, Jan 07 2005
Moebius transform is period 2 sequence [1, 0, ...] = A000035, which means a(n) is the Dirichlet convolution of A000035 and A057427.
a(n) = A113414(2*n). - N. J. A. Sloane, Jan 24 2006 (corrected Nov 10 2007)
a(n) = A001826(n) + A001842(n). - Reinhard Zumkeller, Apr 18 2006
Sequence = M*V = A115369 * A000005, where M = an infinite lower triangular matrix and V = A000005, d(n); as a vector: [1, 2, 2, 3, 2, 4, ...]. - Gary W. Adamson, Apr 15 2007
Equals A051731 * [1,0,1,0,1,...]; where A051731 is the inverse Mobius transform. - Gary W. Adamson, Nov 06 2007
a(n) = A000005(n) - A183063(n).
a(n) = d(n) if n is odd, or d(n) - d(n/2) if n is even, where d(n) is the number of divisors of n (A000005). (See the Weisstein page.) - Gary W. Adamson, Mar 15 2011
Dirichlet convolution of A000005 and A154955 (interpreted as a flat sequence). - R. J. Mathar, Jun 28 2011
a(A000079(n)) = 1; a(A057716(n)) > 1; a(A093641(n)) <= 2; a(A038550(n)) = 2; a(A105441(n)) > 2; a(A072502(n)) = 3. - Reinhard Zumkeller, May 01 2012
a(n) = 1 + A069283(n). - R. J. Mathar, Jun 18 2015
a(A002110(n)/2) = n, n >= 1. - Altug Alkan, Sep 29 2015
a(n*2^m) = a(n*2^i), a((2*j+1)^n) = n+1 for m >= 0, i >= 0 and j >= 0. a((2*x+1)^n) = a((2*y+1)^n) for positive x and y. - Juri-Stepan Gerasimov, Jul 17 2016
Conjectures: a(n) = A067742(n) + 2*A131576(n) = A082647(n) + A131576(n). - Omar E. Pol, Feb 15 2017
a(n) = A000005(2n) - A000005(n) = A099777(n)-A000005(n). - Danny Rorabaugh, Oct 03 2017
L.g.f.: -log(Product_{k>=1} (1 - x^(2*k-1))^(1/(2*k-1))) = Sum_{n>=1} a(n)*x^n/n. - Ilya Gutkovskiy, Jul 30 2018
G.f.: (psi_{q^2}(1/2) + log(1-q^2))/log(q), where psi_q(z) is the q-digamma function. - Michael Somos, Jun 01 2019
a(n) = A003056(n) - A238005(n). - Omar E. Pol, Sep 12 2021
Sum_{k=1..n} a(k) ~ n*log(n)/2 + (gamma + log(2)/2 - 1/2)*n, where gamma is Euler's constant (A001620). - Amiram Eldar, Nov 27 2022
Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k)/A000005(k) = log(2) (A002162). - Amiram Eldar, Mar 01 2023
a(n) = Sum_{i=1..n} (-1)^(i+1)*A135539(n,i). - Ridouane Oudra, Apr 13 2023

A266531 Square array read by antidiagonals upwards: T(n,k) = n-th number with k odd divisors.

Original entry on oeis.org

1, 2, 3, 4, 5, 9, 8, 6, 18, 15, 16, 7, 25, 21, 81, 32, 10, 36, 27, 162, 45, 64, 11, 49, 30, 324, 63, 729, 128, 12, 50, 33, 625, 75, 1458, 105, 256, 13, 72, 35, 648, 90, 2916, 135, 225, 512, 14, 98, 39, 1250, 99, 5832, 165, 441, 405, 1024, 17, 100, 42, 1296, 117, 11664, 189, 450, 567, 59049, 2048, 19, 121, 51, 2401, 126, 15625
Offset: 1

Views

Author

Omar E. Pol, Apr 02 2016

Keywords

Comments

T(n,k) is the n-th positive integer with exactly k odd divisors.
This is a permutation of the natural numbers.
T(n,k) is also the n-th number j with the property that the symmetric representation of sigma(j) has k subparts (cf. A279387). - Omar E. Pol, Dec 27 2016
T(n,k) is also the n-th positive integer with exactly k partitions into consecutive parts. - Omar E. Pol, Aug 16 2018

Examples

			The corner of the square array begins:
    1,  3,  9, 15,   81,  45,   729, 105,  225,  405, ...
    2,  5, 18, 21,  162,  63,  1458, 135,  441,  567, ...
    4,  6, 25, 27,  324,  75,  2916, 165,  450,  810, ...
    8,  7, 36, 30,  625,  90,  5832, 189,  882,  891, ...
   16, 10, 49, 33,  648,  99, 11664, 195,  900, 1053, ...
   32, 11, 50, 35, 1250, 117, 15625, 210, 1089, 1134, ...
   64, 12, 72, 39, 1296, 126, 23328, 231, 1225, 1377, ...
  128, 13, 98, 42, 2401, 147, 31250, 255, 1521, 1539, ...
  ...
		

Crossrefs

A131651 Positive integers obtained as the difference of two triangular numbers in exactly 4 ways.

Original entry on oeis.org

15, 21, 27, 30, 33, 35, 39, 42, 51, 54, 55, 57, 60, 65, 66, 69, 70, 77, 78, 84, 85, 87, 91, 93, 95, 102, 108, 110, 111, 114, 115, 119, 120, 123, 125, 129, 130, 132, 133, 138, 140, 141, 143, 145, 154, 155, 156, 159, 161, 168, 170, 174, 177, 182, 183, 185, 186, 187
Offset: 1

Views

Author

John W. Layman, Sep 10 2007

Keywords

Comments

It appears that terms of the sequence are all given by a power of 2 times the cube of an odd prime or a power of 2 times a product of two distinct odd primes. (This has been verified for a(n) <= 10000.)
Apparently the integers that have exactly 4 odd divisors. (Verified for a(n) <= 187.) - Philippe Beaudoin, Oct 24 2013
Also numbers that can be expressed as the sum of k > 1 consecutive positive integers in exactly 3 ways; e.g., 7+8 = 15, 4+5+6 = 15 and 1+2+3+4+5 = 15. - Julie Jones, Aug 13 2018

Examples

			15 is in the sequence because 15 = 15 - 0 = 21 - 6 = 36 - 21 = 120 - 105, where all operands are triangular, and in no other way.
		

Crossrefs

Programs

  • PARI
    isok(n) = {v = vector(n, i, i*(i+1)/2); nb = 0; for (i=1, n, if (ispolygonal(i*(i+1)/2 - n, 3), nb++; if (nb > 4, return (0)););); nb == 4;} \\ Michel Marcus, Jan 14 2014

A230577 Positive integers that have exactly 6 odd divisors.

Original entry on oeis.org

45, 63, 75, 90, 99, 117, 126, 147, 150, 153, 171, 175, 180, 198, 207, 234, 243, 245, 252, 261, 275, 279, 294, 300, 306, 325, 333, 342, 350, 360, 363, 369, 387, 396, 414, 423, 425, 468, 475, 477, 486, 490
Offset: 1

Views

Author

Philippe Beaudoin, Oct 23 2013

Keywords

Comments

Numbers that can be formed in exactly 5 ways by summing sequences of 2 or more consecutive integers.
Column 6 of A266531. - Omar E. Pol, Apr 03 2016
Numbers n such that the symmetric representation of sigma(n) has 6 subparts. - Omar E. Pol, Dec 28 2016

Crossrefs

Numbers with k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, A267696, this sequence, A267697, A267891, A267892, A267893.

Programs

A267696 Numbers with 5 odd divisors.

Original entry on oeis.org

81, 162, 324, 625, 648, 1250, 1296, 2401, 2500, 2592, 4802, 5000, 5184, 9604, 10000, 10368, 14641, 19208, 20000, 20736, 28561, 29282, 38416, 40000, 41472, 57122, 58564, 76832, 80000, 82944, 83521, 114244, 117128, 130321, 153664, 160000, 165888, 167042, 228488, 234256, 260642, 279841
Offset: 1

Views

Author

Omar E. Pol, Apr 03 2016

Keywords

Comments

Positive integers that have exactly five odd divisors.
Numbers k such that the symmetric representation of sigma(k) has 5 subparts. - Omar E. Pol, Dec 28 2016
Also numbers that can be expressed as the sum of k > 1 consecutive positive integers in exactly 4 ways; e.g., 81 = 40+41 = 26+27+28 = 11+12+13+14+15+16 = 5+6+7+8+9+10+11+12+13. - Julie Jones, Aug 13 2018

Crossrefs

Column 5 of A266531.
Numbers with k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, this sequence, A230577, A267697, A267891, A267892, A267893.

Programs

  • GAP
    A:=List([1..700000],n->DivisorsInt(n));;
    B:=List([1..Length(A)],i->Filtered(A[i],IsOddInt));;
    a:=Filtered([1..Length(B)],i->Length(B[i])=5); # Muniru A Asiru, Aug 14 2018
  • PARI
    isok(n) = sumdiv(n, d, (d%2)) == 5; \\ Michel Marcus, Apr 03 2016
    

Formula

A001227(a(n)) = 5.
Sum_{n>=1} 1/a(n) = 2 * P(4) - 1/8 = 0.00289017370127..., where P(4) is the value of the prime zeta function at 4 (A085964). - Amiram Eldar, Sep 16 2024

Extensions

More terms from Michel Marcus, Apr 03 2016

A267697 Numbers with 7 odd divisors.

Original entry on oeis.org

729, 1458, 2916, 5832, 11664, 15625, 23328, 31250, 46656, 62500, 93312, 117649, 125000, 186624, 235298, 250000, 373248, 470596, 500000, 746496, 941192, 1000000, 1492992, 1771561, 1882384, 2000000, 2985984, 3543122, 3764768, 4000000, 4826809, 5971968, 7086244, 7529536, 8000000, 9653618
Offset: 1

Views

Author

Omar E. Pol, Apr 03 2016

Keywords

Comments

Positive integers that have exactly seven odd divisors.
Numbers k such that the symmetric representation of sigma(k) has 7 subparts. - Omar E. Pol, Dec 28 2016
Numbers that can be formed in exactly 6 ways by summing sequences of 2 or more consecutive positive integers. - Julie Jones, Aug 13 2018
Numbers of the form p^6 * 2^k where p is an odd prime. - David A. Corneth, Aug 14 2018

Crossrefs

Column 7 of A266531.
Numbers with k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, A267696, A230577, this sequence, A267891, A267892, A267893.

Programs

  • PARI
    isok(n) = sumdiv(n, d, (d%2)) == 7; \\ Michel Marcus, Apr 03 2016
    
  • PARI
    upto(n) = {my(res = List()); forprime(p = 3, sqrtnint(n, 6), listput(res, p^6)); q = #res; for(i = 1, q, odd = res[i]; for(j = 1, logint(n \ odd, 2), listput(res, odd <<= 1))); listsort(res); res} \\ David A. Corneth, Aug 14 2018
    
  • Python
    from sympy import integer_log, primerange, integer_nthroot
    def A267697(n):
        def bisection(f,kmin=0,kmax=1):
            while f(kmax) > kmax: kmax <<= 1
            kmin = kmax >> 1
            while kmax-kmin > 1:
                kmid = kmax+kmin>>1
                if f(kmid) <= kmid:
                    kmax = kmid
                else:
                    kmin = kmid
            return kmax
        def f(x): return int(n+x-sum(integer_log(x//p**6,2)[0]+1 for p in primerange(3,integer_nthroot(x,6)[0]+1)))
        return bisection(f,n,n) # Chai Wah Wu, Feb 22 2025

Formula

A001227(a(n)) = 7.
Sum_{n>=1} 1/a(n) = 2 * P(6) - 1/32 = 0.00289017370127..., where P(6) is the value of the prime zeta function at 6 (A085966). - Amiram Eldar, Sep 16 2024

Extensions

More terms from Michel Marcus, Apr 03 2016

A267891 Numbers with 8 odd divisors.

Original entry on oeis.org

105, 135, 165, 189, 195, 210, 231, 255, 270, 273, 285, 297, 330, 345, 351, 357, 375, 378, 385, 390, 399, 420, 429, 435, 455, 459, 462, 465, 483, 510, 513, 540, 546, 555, 561, 570, 594, 595, 609, 615, 621, 627, 645, 651, 660, 663, 665, 690, 702, 705, 714, 715, 741, 750, 756, 759, 770, 777, 780, 783, 795, 798, 805, 837
Offset: 1

Views

Author

Omar E. Pol, Apr 03 2016

Keywords

Comments

Positive integers that have exactly eight odd divisors.
Numbers n such that the symmetric representation of sigma(n) has 8 subparts. - Omar E. Pol, Dec 29 2016
Numbers n such that A000265(n) has prime signature {7} or {3,1} or {1,1,1}, i.e., is in A092759 or A065036 or A007304. - Robert Israel, Mar 15 2018
Numbers that can be formed in exactly 7 ways by summing sequences of 2 or more consecutive positive integers. - Julie Jones, Aug 13 2018

Crossrefs

Column 8 of A266531.
Numbers with exactly k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, A267696, A230577, A267697, this sequence, A267892, A267893.

Programs

  • Magma
    [n: n in [1..1000] | #[d: d in Divisors(n) | IsOdd(d)] eq 8]; // Bruno Berselli, Apr 04 2016
  • Maple
    filter:= proc(n) local r;
      r:= n/2^padic:-ordp(n,2);
      numtheory:-tau(r)=8
    end proc:
    select(filter, [$1..1000]); # Robert Israel, Mar 15 2018
  • Mathematica
    Select[Range@ 840, Length@ Select[Divisors@ #, OddQ] == 8 &] (* Michael De Vlieger, Dec 30 2016 *)
  • PARI
    isok(n) = sumdiv(n, d, (d%2)) == 8; \\ after Michel Marcus
    

Formula

A001227(a(n)) = 8.

A267892 Numbers with 9 odd divisors.

Original entry on oeis.org

225, 441, 450, 882, 900, 1089, 1225, 1521, 1764, 1800, 2178, 2450, 2601, 3025, 3042, 3249, 3528, 3600, 4225, 4356, 4761, 4900, 5202, 5929, 6050, 6084, 6498, 6561, 7056, 7200, 7225, 7569, 8281, 8450, 8649, 8712, 9025, 9522, 9800, 10404, 11858, 12100, 12168, 12321, 12996, 13122, 13225, 14112, 14161, 14400, 14450, 15129
Offset: 1

Views

Author

Omar E. Pol, Apr 03 2016

Keywords

Comments

Positive integers that have exactly nine odd divisors.
Numbers k such that the symmetric representation of sigma(k) has 9 subparts. - Omar E. Pol, Dec 29 2016
From Robert Israel, Dec 29 2016: (Start)
Numbers k such that A000265(k) is in A030627.
Numbers of the form 2^j*p^8 or 2^j*p^2*q^2 where p and q are distinct odd primes. (End)
Numbers that can be formed in exactly 8 ways by summing sequences of 2 or more consecutive positive integers. - Julie Jones, Aug 13 2018

Crossrefs

Column 9 of A266531.
Numbers with exactly k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, A267696, A230577, A267697, A267891, this sequence, A267893.

Programs

  • GAP
    A:=List([1..16000],n->DivisorsInt(n));; B:=List([1..Length(A)],i->Filtered(A[i],IsOddInt));;
    a:=Filtered([1..Length(B)],i->Length(B[i])=9); # Muniru A Asiru, Aug 14 2018
  • Maple
    N:= 10^5: # to get all terms <= N
    P:= select(isprime, [seq(i,i=3..floor(sqrt(N)/2),2)]);
    Aodd:= select(`<=`,map(t -> t^8, P) union {seq(seq(P[i]^2*P[j]^2,i=1..j-1),j=1..nops(P))}, N):
    A:= map(t -> seq(2^j*t,j=0..ilog2(N/t)), Aodd):
    sort(convert(A,list)); # Robert Israel, Dec 29 2016
  • Mathematica
    Select[Range[5^6], Length[Divisors@ # /. d_ /; EvenQ@ d -> Nothing] == 9 &] (* Michael De Vlieger, Apr 04 2016 *)
    Select[Range[16000],Total[Boole[OddQ[Divisors[#]]]]==9&] (* Harvey P. Dale, May 12 2019 *)
  • PARI
    isok(n) = sumdiv(n, d, (d%2)) == 9; \\ after Michel Marcus.
    

Formula

A001227(a(n)) = 9.
Sum_{n>=1} 1/a(n) = (P(2)-1/4)^2 - P(4) + 2*P(8) + 7/128 = 0.026721189882055998428..., where P(s) is the prime zeta function. - Amiram Eldar, Sep 16 2024

A267893 Numbers with 10 odd divisors.

Original entry on oeis.org

405, 567, 810, 891, 1053, 1134, 1377, 1539, 1620, 1782, 1863, 1875, 2106, 2268, 2349, 2511, 2754, 2997, 3078, 3240, 3321, 3483, 3564, 3726, 3750, 3807, 4212, 4293, 4375, 4536, 4698, 4779, 4941, 5022, 5427, 5508, 5751, 5913, 5994, 6156, 6399, 6480, 6642, 6723, 6875, 6966, 7128, 7203, 7209, 7452, 7500, 7614, 7857, 8125
Offset: 1

Views

Author

Omar E. Pol, Apr 03 2016

Keywords

Comments

Positive integers that have exactly 10 odd divisors.
Numbers n such that the symmetric representation of sigma(n) has 10 subparts. - Omar E. Pol, Dec 29 2016
Numbers that can be formed in exactly 9 ways by summing sequences of 2 or more consecutive positive integers. - Julie Jones, Aug 13 2018

Crossrefs

Column 10 of A266531.
Numbers with exactly k odd divisors (k = 1..10): A000079, A038550, A072502, apparently A131651, A267696, A230577, A267697, A267891, A267892, this sequence.

Programs

  • GAP
    A:=List([1..10000],n->DivisorsInt(n));; B:=List([1..Length(A)],i->Filtered(A[i],IsOddInt));;
    a:=Filtered([1..Length(B)],i->Length(B[i])=10); # Muniru A Asiru, Aug 14 2018
  • Mathematica
    Select[Range@ 8125, Length@ Select[Divisors@ #, OddQ] == 10 &] (* Michael De Vlieger, Dec 30 2016 *)
  • PARI
    isok(n) = sumdiv(n, d, (d%2)) == 10; \\ after Michel Marcus
    

Formula

A001227(a(n)) = 10.

A069562 Numbers, m, whose odd part (largest odd divisor, A000265(m)) is a nontrivial square.

Original entry on oeis.org

9, 18, 25, 36, 49, 50, 72, 81, 98, 100, 121, 144, 162, 169, 196, 200, 225, 242, 288, 289, 324, 338, 361, 392, 400, 441, 450, 484, 529, 576, 578, 625, 648, 676, 722, 729, 784, 800, 841, 882, 900, 961, 968, 1058, 1089, 1152, 1156, 1225, 1250, 1296, 1352, 1369
Offset: 1

Views

Author

Benoit Cloitre, Apr 18 2002

Keywords

Comments

Previous name: sum(d|n,6d/(2+mu(d))) is odd, where mu(.) is the Moebius function, A008683.
From Peter Munn, Jul 06 2020: (Start)
Numbers that have an odd number of odd nonsquarefree divisors.
[Proof of equivalence to the name, where m denotes a positive integer:
(1) These properties are equivalent: (a) m has an even number of odd squarefree divisors; (b) m has a nontrivial odd part.
(2) These properties are equivalent: (a) m has an odd number of odd divisors; (b) the odd part of m is square.
(3) m satisfies the condition at the start of this comment if and only if (1)(a) and (2)(a) are both true or both false.
(4) The trivial odd part, 1, is a square, so (1)(b) and (2)(b) cannot both be false, which (from (1), (2)) means (1)(a) and (2)(a) cannot both be false.
(5) From (3), (4), m satisfies the condition at the start of this comment if and only if (1)(a) and (2)(a) are true.
(6) m satisfies the condition in the name if and only if (1)(b) and (2)(b) are true, which (from (1), (2)) is equivalent to (1)(a) and (2)(a) being true, and hence from (5), to m satisfying the condition at the start of this comment.]
(End)
Numbers whose sum of non-unitary divisors (A048146) is odd. - Amiram Eldar, Sep 16 2024

Examples

			To determine the odd part of 18, remove all factors of 2, leaving 9. 9 is a nontrivial square, so 18 is in the sequence. - _Peter Munn_, Jul 06 2020
		

Crossrefs

A000265, A008683 are used in definitions of this sequence.
Lists of numbers whose odd part satisfies other conditions: A028982 (square), A028983 (nonsquare), A029747 (less than 6), A029750 (less than 8), A036349 (even number of prime factors), A038550 (prime), A070776 U {1} (power of a prime), A072502 (square of a prime), A091067 (has form 4k+3), A091072 (has form 4k+1), A093641 (noncomposite), A105441 (composite), A116451 (greater than 4), A116882 (less than or equal to even part), A116883 (greater than or equal to even part), A122132 (squarefree), A229829 (7-rough), A236206 (11-rough), A260488\{0} (has form 6k+1), A325359 (proper prime power), A335657 (odd number of prime factors), A336101 (prime power).

Programs

  • Mathematica
    Select[Range[1000], (odd = #/2^IntegerExponent[#, 2]) > 1 && IntegerQ @ Sqrt[odd] &] (* Amiram Eldar, Sep 29 2020 *)
  • PARI
    upto(n) = { my(res = List()); forstep(i = 3, sqrtint(n), 2, for(j = 0, logint(n\i^2, 2), listput(res, i^2<David A. Corneth, Sep 28 2020

Formula

Sum_{n>=1} 1/a(n) = 2 * Sum_{k>=1} 1/(2*k+1)^2 = Pi^2/4 - 2 = A091476 - 2 = 0.467401... - Amiram Eldar, Feb 18 2021

Extensions

New name from Peter Munn, Jul 06 2020
Showing 1-10 of 12 results. Next