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 10 results.

A128253 Primitive elements of A092671: numbers that may be the largest denominator in an Egyptian fraction for 1.

Original entry on oeis.org

6, 15, 20, 28, 33, 35, 52, 55, 63, 65, 76, 77, 85, 88, 91, 95, 115, 117, 119, 133, 136, 143, 145, 153, 155, 161, 171, 184, 187, 203, 207, 209, 217, 221, 232, 235, 247, 248, 253, 261, 279, 287, 296, 299, 301, 305, 319, 323, 328, 329, 333, 341, 344, 369, 370, 371
Offset: 1

Views

Author

Keywords

Comments

"Primitive" terms of A092671 are the terms larger than 1 which are not divisible by any smaller member of that sequence, except for 1.

Crossrefs

Cf. A092671.

Extensions

Definition clarified by M. F. Hasler, Jul 24 2015

A092669 a(n) = number of Egyptian fractions 1 = 1/x_1 + ... + 1/x_k (for any k), 0

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 5, 0, 11, 0, 0, 0, 19, 0, 0, 0, 73, 0, 86, 0, 0, 163, 0, 203, 286, 0, 0, 0, 803, 0, 1399, 0, 0, 2723, 0, 0, 4870, 0, 0, 0, 8789, 0, 13937, 14987, 42081, 0, 0, 0, 85577, 0, 0, 159982, 0, 117889, 437874, 0, 0, 0, 818640, 0
Offset: 1

Views

Author

Max Alekseyev, Mar 02 2004

Keywords

Comments

For a given n, the Mathematica program uses backtracking to count the solutions. The solutions can be printed by uncommenting the print statement. It is very time-consuming for large n. A092671 gives the n that yield a(n) > 0. - T. D. Noe, Mar 26 2004

Examples

			a(6) = 1 since there is the only fraction 1 = 1/2+1/3+1/6.
		

Crossrefs

Programs

  • Mathematica
    n=20; try2[lev_, s_] := Module[{nmim, nmax, si, i}, AppendTo[soln, 0]; If[lev==1, nmin=2, nmin=1+soln[[ -2]]]; nmax=n-1; Do[If[iT. D. Noe, Mar 26 2004 *)

Formula

a(n) = A092670(n) - A092670(n-1).

Extensions

More terms from T. D. Noe, Mar 26 2004
More terms from T. Suzuki (suzuki(AT)scio.co.jp), Nov 24 2006

A092672 Nonzero elements of A092669.

Original entry on oeis.org

1, 1, 1, 3, 5, 11, 19, 73, 86, 163, 203, 286, 803, 1399, 2723, 4870, 8789, 13937, 14987, 42081, 85577, 159982, 117889, 437874, 818640, 1556563, 2919414, 4532317, 9420591, 11784270, 30183102, 58689399, 75549818, 192950540, 369713351
Offset: 1

Views

Author

Max Alekseyev, Mar 02 2004

Keywords

Crossrefs

Formula

a(n)=A092669(A092671(n))

Extensions

More terms from T. Suzuki (suzuki(AT)scio.co.jp), Nov 24 2006

A093407 For p = prime(n), the least k such that p divides the numerator of a sum 1/k + 1/x1 +...+ 1/xm, where x1,...,xm (for any m) are distinct positive integers <= k.

Original entry on oeis.org

3, 2, 3, 4, 3, 4, 5, 4, 5, 5, 5, 6, 6, 7, 5, 7, 7, 5, 6, 7, 7, 8, 7, 7, 6, 8, 7, 5, 8, 8, 6, 7, 5, 8, 8, 9, 8, 8, 9, 7, 8, 9, 9, 9, 9, 8, 7, 7, 8, 8, 10, 8, 8, 9, 10, 9, 8, 8, 9, 9, 8, 7, 9, 8, 10, 7, 9, 9, 10, 10, 8, 9, 8, 10, 9, 10, 7, 9, 9, 11, 9, 9, 9, 10, 10, 9, 10, 7, 9, 9, 11, 10, 9, 11, 11, 11
Offset: 1

Views

Author

T. D. Noe, Mar 29 2004

Keywords

Comments

This is a very slow-growing sequence: for n <= 1000, a(n) <= 18. The number a(n) * prime(n) is the least number divisible by prime(n) in sequence A092671.

Examples

			a(1) = 3 because 2 = prime(1) and 1/1 + 1/3 = 4/3, whose numerator is divisible by 2.
		

Crossrefs

Cf. A092671 (n such that there is an Egyptian fraction partition of unity having smallest unit fraction 1/n), A093408.

Programs

  • Mathematica
    len=100; a=Table[0, {len}]; done=False; s={0}; n=0; While[ !done, n++; s=Join[s, s+1/n]; ns=Numerator[s]; done=True; Do[If[a[[i]]==0, p=Prime[i]; If[Count[ns, _?(#>0 && Mod[ #, p]==0&)]>0, a[[i]]=n, done=False]], {i, len}]]; a

A212606 Number of distinct sums <= 1 of reciprocals of positive integers <= n.

Original entry on oeis.org

1, 2, 3, 6, 10, 26, 34, 103, 175, 393, 599, 2015, 2551, 8681, 14254, 19620, 34700, 129557, 161272, 595304, 695175, 1094164, 1903859, 7654850, 9413484, 29625309
Offset: 0

Views

Author

Max Alekseyev, May 22 2012

Keywords

Examples

			a(3) = 6 counts numbers { 0, 1/3, 1/2, 2/3, 5/6, 1 }, each of which is can be represented as the sum of reciprocals 1/1, 1/2, and 1/3.
		

Crossrefs

For distinct sums of distinct reciprocals, see A212607.

Extensions

a(24)-a(25) from Dexter Senft, Feb 07 2019

A212607 Number of distinct sums <= 1 of distinct reciprocals of integers <= n.

Original entry on oeis.org

1, 2, 3, 5, 8, 14, 21, 38, 70, 129, 238, 440, 504, 949, 1790, 2301, 4363, 8272, 12408, 23604, 26675, 45724, 87781, 168549, 181989, 351076, 677339, 1306894, 1399054, 2709128, 2795144, 5423805, 10525050
Offset: 0

Views

Author

Max Alekseyev, May 22 2012

Keywords

Examples

			a(3) = 5 counts numbers { 0, 1/3, 1/2, 5/6, 1 }, each of which is can be represented as the sum of distinct reciprocals 1/1, 1/2, and 1/3.
		

Crossrefs

For possibly non-distinct reciprocals, see A212606.

Programs

  • Maple
    s:= proc(n) option remember;
          `if`(n=0, {0}, map(x-> `if`(n-1 nops(s(n)):
    seq(a(n), n=0..20);  # Alois P. Heinz, May 23 2012
  • Mathematica
    s[_] := s[n] = If[n == 0, {0}, If[n-1 < n*#, #, {#, # + 1/n}]& /@ s[n-1] // Flatten];
    a[n_] := Length[s[n]];
    Table[Print[n, " ", a[n]]; a[n], {n, 0, 32}] (* Jean-François Alcover, May 13 2019, after Alois P. Heinz *)

Extensions

a(27)-a(32) from Alois P. Heinz, May 23 2012

A212657 Number of subsets of {1,2,...,n} with the sum of reciprocals <= 1.

Original entry on oeis.org

1, 2, 3, 5, 8, 14, 26, 46, 83, 151, 276, 503, 921, 1689, 3113, 5730, 10549, 19441, 35868, 66209, 122316, 226157, 418373, 774394, 1434130, 2657246, 4925837, 9135444, 16949660, 31460444, 58415377, 108502932, 201604081, 374708242, 696650259, 1295562800, 2410001851, 4484208954, 8345621293
Offset: 0

Views

Author

Max Alekseyev, May 23 2012

Keywords

Comments

The number of distinct sums of reciprocals is given by A212607.
a(n) grows as 2^(b*n) with b=0.911... (Tikhomirov et al. 2017).

Crossrefs

Cf. A212658 (reciprocals can appear multiple times).

Programs

  • PARI
    { A212657(n) = my(L=lcm(vector(n,i,i))); polcoeff( prod(i=1,n, 1+x^(L/i)+O(x^(L+1)) )/(1-x), L); }

Extensions

a(32)-a(35) from Alois P. Heinz, May 23 2012
a(36)-a(95) from Robert Gerbicz, May 23 2012

A275288 Least k such that there exists a sequence b_1 < b_2 < ... < b_t = k that includes n and has a reciprocal sum of 1.

Original entry on oeis.org

1, 6, 6, 12, 20, 6, 28, 24, 18, 15, 33, 12, 65, 28, 15, 48, 85, 18, 76, 20, 28, 33, 115, 24, 100, 52, 54, 28, 145, 30, 217, 96, 33, 85, 35, 36, 296, 95, 52, 40, 246, 42, 301, 55, 45, 138, 329, 48, 196, 75, 102, 52, 371, 54, 55, 56, 76, 174, 531, 60, 305, 155
Offset: 1

Views

Author

Peter Kagey, Aug 18 2016

Keywords

Comments

From Robert Price, Jan 04 2017: (Start)
a(11) = 33 [2,3,11,22,33]
65 >= a(13) > 26 [2,3,13,26,52,60,65]; no better solution with fewer than 15 terms.
48 >= a(16) > 32 [2,3,16,18,36,48]; no better solution with fewer than 24 terms.
85 >= a(17) > 34 [2,3,15,17,34,85]; no better solution with fewer than 12 terms.
76 >= a(19) > 19 [2,3,12,19,57,76]; no better solution with fewer than 12 terms.
a(20) = 20 [2,4,5,20]
a(21) = 28 [2,4,8,21,24,28]
a(22) = 33 [2,4,11,20,22,30,33]
115 >= a(23) > 23 [2,3,10,23,69,115]; no better solution with fewer than 11 terms.
a(24) = 24 [2,3,8,24]
100 >= a(25) > 25 [2,3,10,25,60,100]; no better solution with fewer than 11 terms.
52 >= a(26) > 26 [2,3,12,26,39,52]; no better solution with fewer than 16 terms.
54 >= a(27) > 27 [2,3,12,27,36,54]; no better solution with fewer than 9 terms.
a(28) = 28 [2,3,12,21,28]
145 >= a(29) > 29 [2,4,5,29,116,145]; no better solution with fewer than 9 terms.
a(30) = 30 [2,3,12,20,30]
217 >= a(31) > 31 [2,3,9,31,93,126,217]; no better solution with fewer than 9 terms.
96 >= a(32) > 32 [2,3,9,32,72,96]; no better solution with fewer than 11 terms.
a(33) = 33 [2,3,11,22,33]
85 >= a(34) > 34 [2,3,17,20,34,60,85]; no better solution with fewer than 9 terms.
a(35) = 35 [2,3,14,15,35]
a(36) = 36 [2,3,12,18,36]
296 >= a(37) > 37 [2,3,8,37,148,222,296]; no better solution with fewer than 8 terms.
95 >= a(38) > 38 [2,4,5,38,76,95]; no better solution with fewer than 11 terms.
52 >= a(39) > 39 [2,4,6,26,39,52]; no better solution with fewer than 15 terms.
a(40) = 40 [2,3,10,24,40]
246 >= a(41) > 41 [2,3,8,41,120,205,246]; no better solution with fewer than 9 terms.
a(42) = 42 [2,3,7,42]
192 >= a(64) [2,3,8,48,64,192]; no better solution with fewer than 9 terms.
162 >= a(81) [2,3,8,72,81,108,162]; no better solution with fewer than 9 terms.
384 >= a(128) [2,3,7,96,128,336,384]; no better solution with fewer than 8 terms.
486 >= a(243) [2,3,7,81,243,336,432,486]; no better solution with fewer than 9 terms.
a(216) = 216 [2,3,8,27,216]
196 >= a(49) [2,3,8,49,98,168,196]; no better solution with fewer than 8 terms.
a(100) = 100 [2,4,5,25,100]
363 >= a(121) [2,3,7,121,176,242,336,363]; no better solution with fewer than 8 terms.
a(144) = 144 [2,3,7,112,126,144]
a(196) = 196 [2 ,3,7,84,147,196]
a(225) = 225 [2,3,9,25,90,225]
a(500) = 500 [2,4,5,25,125,500]
It appears that in most cases a(n) is a small multiple of n. For example: a(8)=3*8, a(11)=3*11, a(35)=1*35.
If not a small multiple of n, then a small rational times n. For example: a(10)=3/2*10, a(21)=4/3*21, a(22)=3/2*22.
Conjectures:
a(2^n) = 3*n
a(3^n) = 2*n
a(5^n) = 4*n
a(6^n) = n
a(7^n) = 4*n
(End)
From Peter Kagey, Jul 20 2017: (Start)
a(n) = n if and only if n is in A092671.
Every term in this sequence is in A092671.
a(a(n)) = a(n); that is, this sequence is idempotent.
(End)
From Jon E. Schoenfield, Feb 15 2020: (Start)
For any n > 1, let P be the largest divisor of n that is either a prime (p) or prime power (p^e, where e > 1). Then a(n) >= m*P where m is the smallest integer such that p divides the numerator of the sum of some subset of the set of unit fractions {1/1, 1/2, 1/3, ..., 1/m} that includes 1/(n/P).
Conjecture (confirmed for all n <= 40000): for all n > 1, the lower bound given above is tight, i.e., a(n) = m*P where m and P are as defined above. (See Example section.) (End)

Examples

			a(1)  =  1 via [1]
a(2)  =  6 via [2, 3, 6]
a(3)  =  6 via [2, 3, 6]
a(4)  = 12 via [2, 4, 6, 12]
a(5)  = 20 via [2, 4, 5, 20]
a(6)  =  6 via [2, 3, 6]
a(7)  = 28 via [2, 4, 7, 14, 28]
a(8)  = 24 via [2, 3, 8, 24]
a(9)  = 18 via [2, 3, 9, 18]
a(10) = 15 via [2, 3, 10, 15]
a(11) > 30
a(12) = 12 via [2, 4, 6, 12]
a(13) > 30
a(14) = 28 via [2, 4, 7, 14, 28]
a(15) = 15 via [2, 3, 10, 15]
a(16) > 30
a(17) > 30
a(18) = 18 via [2, 3, 9, 18]
From _Jon E. Schoenfield_, Feb 15 2020: (Start)
For n=31, the largest prime or prime power divisor of n is P=31, and the set of unit fractions {1/1, 1/2, 1/3, 1/4, 1/5, 1/6} has no subset sum that includes 1/(n/P) = 1/1 and has a numerator divisible by 31, but the set of unit fractions {1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7} does have such a subset sum, namely, 1/1 + 1/3 + 1/7 = 31/21, so a(31) >= 7*31 = 217. In fact, the numbers 1*31=31, 3*31=93, and 7*31=217 are elements of many sets of integers that include n=31, include no element > 217, and have a reciprocal sum of 1 (one such set is {2,3,12,28,31,93,217}), so a(31)=217.
For n=62, the largest prime or prime power divisor of n is again P=31, and the set of unit fractions {1/1, 1/2, 1/3, 1/4} has no subset sum that includes 1/(n/P) = 1/2 and has a numerator divisible by 31, but the set of unit fractions {1/1, 1/2, 1/3, 1/4, 1/5} does have such a subset sum, namely, 1/2 + 1/3 + 1/5 = 31/30, so a(62) >= 5*31 = 155. In fact, the numbers 2*31=62, 3*31=93, and 5*31=155 are elements of many sets of integers that include n=62, include no element > 155, and have a reciprocal sum of 1 (one such set is {2,3,12,20,62,93,155}), so a(62)=155.
(End)
		

Crossrefs

Programs

  • Mathematica
    Table[SelectFirst[Range@ 20, MemberQ[Map[Total, 1/DeleteCases[Rest@ Subsets[Range@ #, #], w_ /; FreeQ[w, n]]], 1] &] /. k_ /; MissingQ@ k -> 0, {n, 12}] (* Michael De Vlieger, Aug 18 2016, Version 10.2, values of a(n) > 20 appear as 0 *)

Extensions

a(11)-a(12) from Robert Price, Jan 07 2017
a(13)-a(58) from David A. Corneth, Jul 20 2017
a(59)-a(62) from Jon E. Schoenfield, Feb 15 2020

A212658 Number of multisets {1^k1, 2^k2, ..., n^kn}, ki >= 0, with the sum of reciprocals <= 1.

Original entry on oeis.org

1, 2, 4, 8, 17, 37, 86, 199, 475, 1138, 2769, 6748, 16613, 40904, 101317, 251401, 624958, 1555940, 3882708, 9701790, 24276866, 60817940, 152508653, 382828565, 961859364, 2418662434, 6086480305, 15327208770, 38622901484, 97384378728, 245686368946, 620158662562
Offset: 0

Views

Author

Max Alekseyev, May 23 2012

Keywords

Comments

The number of distinct sums of reciprocals is given by A212606.

Crossrefs

Extensions

a(24)-a(25) from Alois P. Heinz, Nov 20 2017
a(26)-a(31) from Dexter Senft, Feb 07 2019

A260402 Numbers which cannot be the largest denominator of an Egyptian fraction for 1.

Original entry on oeis.org

2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 16, 17, 19, 21, 22, 23, 25, 26, 27, 29, 31, 32, 34, 37, 38, 39, 41, 43, 44, 46, 47, 49, 50, 51, 53, 57, 58, 59, 61, 62, 64, 67, 68, 69, 71, 73, 74, 79, 81, 82, 83, 86, 87, 89, 92, 93, 94, 97, 98, 101, 103, 106, 107, 109
Offset: 1

Views

Author

M. F. Hasler, Jul 24 2015

Keywords

Comments

Complement of A092671.
Contains at all primes and prime powers (A000961).
Martin studies the asymptotic behavior of this sequence: the order of magnitude of its counting function (number of elements below x) is x log log x / log x.

Examples

			10 is in this sequence because any Egyptian fraction with 1/10 as its term with largest denominator either contains 1/5 as well or not; either way, the resulting sum will have a factor 5 in its denominator (any other term will contribute a multiple of 5 to the numerator of the sum), hence cannot equal 1.
		
Showing 1-10 of 10 results.