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 20 results. Next

A098743 Number of partitions of n into aliquant parts (i.e., parts that do not divide n).

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 0, 3, 1, 3, 3, 13, 1, 23, 10, 11, 9, 65, 8, 104, 14, 56, 66, 252, 10, 245, 147, 206, 77, 846, 35, 1237, 166, 649, 634, 1078, 60, 3659, 1244, 1850, 236, 7244, 299, 10086, 1228, 1858, 4421, 19195, 243, 17660, 3244, 12268, 4039, 48341, 1819, 27675
Offset: 0

Views

Author

Reinhard Zumkeller, Oct 01 2004

Keywords

Comments

It seems very plausible that the low and high water marks occur when n is a factorial number or a prime: see A260797, A260798.
a(A000040(n)) = A002865(n) - 1.

Examples

			7 = 2 + 2 + 3 = 2 + 5 = 3 + 4, so a(7) = 3.
a(10) = #{7+3,6+4,4+3+3} = 3, all other partitions of 10 contain at least one divisor (10, 5, 2, or 1).
		

Crossrefs

See also A057562 (relatively prime parts).

Programs

  • Haskell
    a098743 n = p [nd | nd <- [1..n], mod n nd /= 0] n where
       p _  0 = 1
       p [] _ = 0
       p ks'@(k:ks) m | m < k = 0 | otherwise = p ks' (m - k) + p ks m
    -- Reinhard Zumkeller, Nov 22 2011
    
  • Haskell
    -- with memoization
    import Data.MemoCombinators (memo3, integral)
    a098743 n = a098743_list !! n
    a098743_list = map (\x -> pMemo x 1 x) [0..] where
       pMemo = memo3 integral integral integral p
       p   0 = 1
       p x k m | m < k        = 0
               | mod x k == 0 = pMemo x (k + 1) m
               | otherwise    = pMemo x k (m - k) + pMemo x (k + 1) m
    -- Reinhard Zumkeller, Aug 08 2015
    
  • Maple
    a := [1,0,0,0,0]; M:=300; for n from 5 to M do t1:={seq(i,i=1..n)}; t3 := t1 minus divisors(n); t4 := mul(1/(1-x^i), i in t3); t5 := series(t4,x,n+2); a:=[op(a), coeff(t5,x,n)]; od: a; # N. J. A. Sloane, Aug 08 2015
    # second Maple program:
    a:= proc(m) option remember; local b; b:= proc(n, i)
          option remember; `if`(n=0, 1, `if`(i<2, 0, b(n, i-1)+
          `if`(irem(m, i)=0, 0, b(n-i, min(i, n-i))))) end; b(m$2)
        end:
    seq(a(n), n=0..60);  # Alois P. Heinz, Mar 11 2018
  • Mathematica
    a[m_] := a[m] = Module[{b}, b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 2, 0, b[n, i-1] + If[Mod[m, i] == 0, 0, b[n-i, Min[i, n-i]]]]]; b[m, m]];
    Table[a[n], {n, 0, 60}] (* Jean-François Alcover, Apr 30 2018, after Alois P. Heinz *)
  • PARI
    a(n)={polcoef(1/prod(k=1, n, if(n%k, 1 - x^k, 1) + O(x*x^n)), n)} \\ Andrew Howroyd, Aug 29 2018

Extensions

a(0) added and offset changed by Reinhard Zumkeller, Nov 22 2011
New wording for definition suggested by Marc LeBrun, Aug 07 2015

A097986 Number of strict integer partitions of n with a part dividing all the other parts.

Original entry on oeis.org

1, 1, 2, 2, 2, 4, 3, 5, 5, 7, 6, 12, 9, 13, 15, 20, 18, 28, 26, 37, 39, 47, 49, 71, 68, 85, 94, 117, 120, 159, 160, 201, 216, 257, 277, 348, 357, 430, 470, 562, 592, 720, 758, 901, 981, 1134, 1220, 1457, 1542, 1798, 1952, 2250, 2419, 2819, 3023, 3482, 3773, 4291
Offset: 1

Views

Author

Vladeta Jovovic, Oct 23 2004

Keywords

Comments

If n > 0, we can assume such a part is the smallest. - Gus Wiseman, Apr 23 2021
Also the number of uniform (constant multiplicity) partitions of n containing 1, ranked by A367586. The strict case is A096765. The version without 1 is A329436. - Gus Wiseman, Dec 01 2023

Examples

			From _Gus Wiseman_, Dec 01 2023: (Start)
The a(1) = 1 through a(8) = 5 strict partitions with a part dividing all the other parts:
  (1)  (2)  (3)    (4)    (5)    (6)      (7)      (8)
            (2,1)  (3,1)  (4,1)  (4,2)    (6,1)    (6,2)
                                 (5,1)    (4,2,1)  (7,1)
                                 (3,2,1)           (4,3,1)
                                                   (5,2,1)
The a(1) = 1 through a(8) = 5 uniform partitions containing 1:
  (1)  (11)  (21)   (31)    (41)     (51)      (61)       (71)
             (111)  (1111)  (11111)  (321)     (421)      (431)
                                     (2211)    (1111111)  (521)
                                     (111111)             (3311)
                                                          (11111111)
(End)
		

Crossrefs

The non-strict version is A083710.
The case with no 1's is A098965.
The Heinz numbers of these partitions are A339563.
The strict complement is counted by A341450.
The version for "divisible by" instead of "dividing" is A343347.
The case where there is also a part divisible by all the others is A343378.
The case where there is no part divisible by all the others is A343381.
A000005 counts divisors.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.

Programs

  • Mathematica
    Take[ CoefficientList[ Expand[ Sum[x^k*Product[1 + x^(k*i), {i, 2, 62}], {k, 62}]], x], {2, 60}] (* Robert G. Wilson v, Nov 01 2004 *)
    Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&Or@@Table[And@@IntegerQ/@(#/x), {x,#}]&]], {n,0,30}] (* Gus Wiseman, Apr 23 2021 *)
  • PARI
    A_x(N) = {my(x='x+O('x^N)); Vec(sum(k=1,N,x^k*prod(i=2,N-k, (1+x^(k*i)))))}
    A_x(50) \\ John Tyler Rascoe, Nov 19 2024

Formula

a(n) = Sum_{d|n} A025147(d-1).
G.f.: Sum_{k>=1} (x^k*Product_{i>=2} (1+x^(k*i))).
a(n) ~ exp(Pi*sqrt(n/3)) / (8*3^(1/4)*n^(3/4)). - Vaclav Kotesovec, Jul 06 2025

Extensions

More terms from Robert G. Wilson v, Nov 01 2004
Name shortened by Gus Wiseman, Apr 23 2021

A343382 Number of strict integer partitions of n with either (1) no part dividing all the others or (2) no part divisible by all the others.

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 1, 2, 3, 4, 6, 9, 9, 13, 18, 21, 26, 34, 38, 48, 57, 67, 81, 99, 110, 133, 157, 183, 211, 250, 282, 330, 380, 437, 502, 575, 648, 748, 852, 967, 1095, 1250, 1405, 1597, 1801, 2029, 2287, 2579, 2883, 3245, 3638, 4077, 4557, 5107, 5691, 6356
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are either (1) empty, or (2) have smallest part not dividing all the others, or (3) have greatest part not divisible by all the others.

Examples

			The a(0) = 1 through a(11) = 9 partitions (empty columns indicated by dots):
  ()  .  .  .  .  (3,2)  (3,2,1)  (4,3)  (5,3)    (5,4)    (6,4)      (6,5)
                                  (5,2)  (4,3,1)  (7,2)    (7,3)      (7,4)
                                         (5,2,1)  (4,3,2)  (5,3,2)    (8,3)
                                                  (5,3,1)  (5,4,1)    (9,2)
                                                           (7,2,1)    (5,4,2)
                                                           (4,3,2,1)  (6,3,2)
                                                                      (6,4,1)
                                                                      (7,3,1)
                                                                      (5,3,2,1)
		

Crossrefs

The first condition alone gives A341450.
The non-strict version is A343346 (Heinz numbers: A343343).
The second condition alone gives A343377.
The strict complement is A343378.
The version for "and" instead of "or" is A343379.
A000005 counts divisors.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&!And@@IntegerQ/@(#/Min@@#)||UnsameQ@@#&&!And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]

A343377 Number of strict integer partitions of n with no part divisible by all the others.

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 1, 2, 3, 4, 6, 8, 9, 13, 18, 21, 26, 32, 38, 47, 57, 66, 80, 95, 110, 132, 157, 181, 211, 246, 282, 327, 379, 435, 500, 570, 648, 743, 849, 963, 1094, 1241, 1404, 1592, 1799, 2025, 2282, 2568, 2882, 3239, 3634, 4066, 4554, 5094, 5686, 6346
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are empty or have greatest part not divisible by all the others.

Examples

			The a(5) = 1 through a(12) = 9 partitions:
  (3,2)  (3,2,1)  (4,3)  (5,3)    (5,4)    (6,4)      (6,5)      (7,5)
                  (5,2)  (4,3,1)  (7,2)    (7,3)      (7,4)      (5,4,3)
                         (5,2,1)  (4,3,2)  (5,3,2)    (8,3)      (6,4,2)
                                  (5,3,1)  (5,4,1)    (9,2)      (6,5,1)
                                           (7,2,1)    (5,4,2)    (7,3,2)
                                           (4,3,2,1)  (6,4,1)    (7,4,1)
                                                      (7,3,1)    (8,3,1)
                                                      (5,3,2,1)  (9,2,1)
                                                                 (5,4,2,1)
		

Crossrefs

The dual strict complement is A097986.
The dual version is A341450.
The non-strict version is A343341 (Heinz numbers: A343337).
The strict complement is counted by A343347.
The case with smallest part not divisible by all the others is A343379.
The case with smallest part divisible by all the others is A343381.
A000005 counts divisors.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&!And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]

A343379 Number of strict integer partitions of n with no part dividing or divisible by all the other parts.

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 0, 2, 1, 3, 3, 5, 3, 9, 9, 12, 12, 18, 18, 27, 27, 36, 41, 51, 51, 73, 80, 96, 105, 132, 137, 177, 188, 230, 253, 303, 320, 398, 431, 508, 550, 659, 705, 847, 913, 1063, 1165, 1359, 1452, 1716, 1856, 2134, 2329, 2688, 2894, 3345, 3622, 4133
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are either empty, or (1) have smallest part not dividing all the others and (2) have greatest part not divisible by all the others.

Examples

			The a(5) = 1 through a(13) = 9 partitions (empty column indicated by dot):
  (3,2)  .  (4,3)  (5,3)  (5,4)    (6,4)    (6,5)    (7,5)    (7,6)
            (5,2)         (7,2)    (7,3)    (7,4)    (5,4,3)  (8,5)
                          (4,3,2)  (5,3,2)  (8,3)    (7,3,2)  (9,4)
                                            (9,2)             (10,3)
                                            (5,4,2)           (11,2)
                                                              (6,4,3)
                                                              (6,5,2)
                                                              (7,4,2)
                                                              (8,3,2)
		

Crossrefs

The first condition alone gives A341450.
The non-strict version is A343342 (Heinz numbers: A343338).
The second condition alone gives A343377.
The opposite version is A343378.
The half-opposite versions are A343380 and A343381.
The version for "or" instead of "and" is A343382.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&!And@@IntegerQ/@(#/Min@@#)&&!And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]

Formula

The Heinz numbers for the non-strict version are A343338 = A342193 /\ A343337.

A098965 Number of integer partitions of n into distinct parts > 1 with a part dividing all the other parts.

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 5, 1, 3, 3, 5, 1, 7, 1, 8, 4, 6, 1, 15, 2, 9, 5, 14, 1, 22, 1, 20, 7, 18, 4, 36, 1, 26, 10, 40, 1, 51, 1, 48, 18, 49, 1, 86, 3, 73, 19, 86, 1, 117, 7, 120, 27, 120, 1, 196, 1, 160, 42, 201, 10, 259, 1, 258, 50, 292, 1, 407, 1, 357, 81, 431, 8, 548, 1, 577
Offset: 1

Views

Author

Vladeta Jovovic, Oct 23 2004

Keywords

Comments

If n > 0, we can assume this part is the smallest. - Gus Wiseman, Apr 18 2021

Crossrefs

The non-strict version with 1's allowed is A083710.
The non-strict version is A083711.
The version with 1's allowed is A097986.
The Heinz numbers of these partitions are the odd terms of A339563.
The non-strict dual is A339619.
The strict complement is counted by A341450.
A000005 counts divisors.
A000041 counts partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.

Programs

  • Mathematica
    Take[ CoefficientList[ Expand[ Sum[x^k*Product[1 + x^(k*i), {i, 2, 92}], {k, 2, 92}]], x], {2, 81}] (* Robert G. Wilson v, Nov 01 2004 *)
    Table[If[n==0,0,Length[Select[IntegerPartitions[n],!MemberQ[#,1]&&UnsameQ@@#&&And@@IntegerQ/@(#/Min@@#)&]]],{n,0,30}] (* Gus Wiseman, Apr 18 2021 *)

Formula

a(n) = Sum_{d|n, dA025147(d-1).
G.f.: Sum_{k>=2} (x^k*Product_{i>=2}(1 + x^(k*i))).

Extensions

More terms from Robert G. Wilson v, Nov 01 2004
Name shortened by Gus Wiseman, Apr 23 2021

A343347 Number of strict integer partitions of n with a part divisible by all the others.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 6, 5, 4, 6, 6, 6, 8, 7, 7, 10, 9, 9, 12, 10, 8, 11, 11, 10, 14, 13, 11, 13, 12, 15, 20, 17, 15, 19, 19, 19, 22, 18, 17, 23, 22, 22, 28, 25, 24, 31, 28, 26, 32, 32, 30, 34, 32, 29, 37, 33, 27, 36, 33, 34, 44, 38, 36, 45, 45
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are empty or have greatest part divisible by all the others.

Examples

			The a(1) = 1 through a(15) = 6 partitions (A..F = 10..15):
  1  2  3   4   5   6   7    8   9    A    B    C     D    E    F
        21  31  41  42  61   62  63   82   A1   84    C1   C2   A5
                    51  421  71  81   91   632  93    841  D1   C3
                                 621  631  821  A2    931  842  E1
                                                B1    A21       C21
                                                6321            8421
		

Crossrefs

The dual version is A097986 (non-strict: A083710).
The non-strict version is A130689 (Heinz numbers: complement of A343337).
The strict complement is counted by A343377.
The case with smallest part divisible by all the others is A343378.
The case with smallest part not divisible by all the others is A343380.
A000005 counts divisors.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]
  • PARI
    seq(n)={Vec(1 + sum(m=1, n, my(u=divisors(m)); x^m*prod(i=1, #u-1, 1 + x^u[i] + O(x^(n-m+1)))))} \\ Andrew Howroyd, Apr 17 2021

Formula

G.f.: 1 + Sum_{k>0} (x^k/(1 + x^k))*Product_{d|k} (1 + x^d). - Andrew Howroyd, Apr 17 2021

A326850 Number of strict integer partitions of n whose maximum part divides n.

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 4, 1, 5, 2, 6, 1, 10, 1, 10, 5, 12, 1, 23, 1, 18, 15, 23, 1, 49, 1, 34, 36, 38, 1, 106, 1, 54, 79, 81, 1, 189, 1, 124, 162, 104, 1, 412, 1, 145, 307, 289, 1, 608, 12, 437, 559, 256, 1, 1432, 1, 340, 981, 976, 79, 1730, 1
Offset: 0

Views

Author

Gus Wiseman, Jul 28 2019

Keywords

Examples

			The initial terms count the following partitions:
   1: (1)
   2: (2)
   3: (3)
   4: (4)
   5: (5)
   6: (6)
   6: (3,2,1)
   7: (7)
   8: (8)
   8: (4,3,1)
   9: (9)
  10: (10)
  10: (5,4,1)
  10: (5,3,2)
  11: (11)
  12: (12)
  12: (6,5,1)
  12: (6,4,2)
  12: (6,3,2,1)
  13: (13)
  14: (14)
  14: (7,6,1)
  14: (7,5,2)
  14: (7,4,3)
  14: (7,4,2,1)
  15: (15)
  15: (5,4,3,2,1)
		

Crossrefs

Positions of 1's appear to be A308168.
The non-strict case is given by A067538.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],UnsameQ@@#&&Divisible[n,Max[#]]&]],{n,0,30}]

A343381 Number of strict integer partitions of n with a part dividing all the others but no part divisible by all the others.

Original entry on oeis.org

1, 0, 0, 0, 0, 0, 1, 0, 2, 1, 3, 3, 6, 4, 9, 9, 14, 14, 20, 20, 30, 30, 39, 44, 59, 59, 77, 85, 106, 114, 145, 150, 191, 205, 247, 267, 328, 345, 418, 455, 544, 582, 699, 745, 886, 962, 1117, 1209, 1430, 1523, 1778, 1932, 2225, 2406, 2792, 3001, 3456, 3750
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are empty or (1) have smallest part dividing all the others and (2) have greatest part not divisible by all the others.

Examples

			The a(6) = 1 through a(16) = 14 partitions (empty column indicated by dot, A..D = 10..13):
  321   .  431   531   541    641    642    751    761    861     862
           521         721    731    651    5431   851    951     871
                       4321   5321   741    6421   941    A41     961
                                     831    7321   A31    B31     A42
                                     921           B21    6531    B41
                                     5421          6431   7431    D21
                                                   6521   7521    6541
                                                   7421   9321    7531
                                                   8321   54321   7621
                                                                  8431
                                                                  8521
                                                                  9421
                                                                  A321
                                                                  64321
		

Crossrefs

The first condition alone gives A097986.
The non-strict version is A343345 (Heinz numbers: A343340).
The second condition alone gives A343377.
The half-opposite versions are A343378 and A343379.
The opposite (and dual) version is A343380.
A000005 counts divisors.
A000009 counts strict partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&And@@IntegerQ/@(#/Min@@#)&&!And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]

A343380 Number of strict integer partitions of n with no part dividing all the others but with a part divisible by all the others.

Original entry on oeis.org

1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 1, 0, 1, 1, 4, 0, 1, 0, 2, 0, 4, 0, 3, 1, 2, 2, 5, 0, 5, 3, 4, 1, 9, 1, 5, 2, 4, 5, 11, 1, 6, 4, 11, 3, 13, 5, 10, 4, 11, 8, 14, 3, 10, 6, 9, 3, 15, 6, 14, 10, 18, 8
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2021

Keywords

Comments

Alternative name: Number of strict integer partitions of n that are either empty or (1) have smallest part not dividing all the others and (2) have greatest part divisible by all the others.

Examples

			The a(11) = 1 through a(29) = 4 partitions (empty columns indicated by dots, A..O = 10..24):
  632  .  .  .  .  .  A52  .  C43  .  C432  C64  E72   .  C643  .  K52    .  I92
                      C32                        F53               C6432     K54
                                                 I32                         O32
                                                 C632                        I632
		

Crossrefs

The first condition alone gives A341450.
The non-strict version is A343344 (Heinz numbers: A343339).
The second condition alone gives A343347.
The half-opposite versions are A343378 and A343379.
The opposite (and dual) version is A343381.
A000009 counts strict partitions.
A000041 counts partitions.
A000070 counts partitions with a selected part.
A006128 counts partitions with a selected position.
A015723 counts strict partitions with a selected part.
A018818 counts partitions into divisors (strict: A033630).
A167865 counts strict chains of divisors > 1 summing to n.
A339564 counts factorizations with a selected factor.

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],#=={}||UnsameQ@@#&&!And@@IntegerQ/@(#/Min@@#)&&And@@IntegerQ/@(Max@@#/#)&]],{n,0,30}]
Showing 1-10 of 20 results. Next