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.

Previous Showing 21-27 of 27 results.

A339333 Triangle read by rows, 1 <= k <= n: T(n,k) is the sum of the minimal number of coins needed for amounts 1..n with an optimal k-coin system of denominations.

Original entry on oeis.org

1, 3, 2, 6, 4, 3, 10, 6, 5, 4, 15, 9, 7, 6, 5, 21, 11, 9, 8, 7, 6, 28, 14, 11, 10, 9, 8, 7, 36, 18, 13, 12, 11, 10, 9, 8, 45, 21, 16, 14, 13, 12, 11, 10, 9, 55, 25, 19, 16, 15, 14, 13, 12, 11, 10, 66, 30, 22, 18, 17, 16, 15, 14, 13, 12, 11
Offset: 1

Views

Author

Pontus von Brömssen, Nov 30 2020

Keywords

Comments

T(n,k) <= A339334(n,k).
T(n,k) >= 2n - k, with equality if and only if n <= A001212(k).

Examples

			Triangle begins:
  n\k|  1  2  3  4  5  6  7  8  9 10 11 12
  ---|-------------------------------------
   1 |  1
   2 |  3  2
   3 |  6  4  3
   4 | 10  6  5  4
   5 | 15  9  7  6  5
   6 | 21 11  9  8  7  6
   7 | 28 14 11 10  9  8  7
   8 | 36 18 13 12 11 10  9  8
   9 | 45 21 16 14 13 12 11 10  9
  10 | 55 25 19 16 15 14 13 12 11 10
  11 | 66 30 22 18 17 16 15 14 13 12 11
  12 | 78 33 24 20 19 18 17 16 15 14 13 12
For n = 8, there is a unique optimal 3-coin system (1,3,4), with the representations
  1 = 1
  2 = 1 + 1
  3 = 3
  4 = 4
  5 = 4 + 1
  6 = 3 + 3
  7 = 4 + 3
  8 = 4 + 4
with a total of 13 = T(8,3) terms.
Shallit (2003) shows that T(99,k) is 4950, 900, 515, 389, 329, 292, 265 for k = 1..7.
		

Crossrefs

Formula

T(n,1) = A000217(n).
It appears that T(n,2) - T(n-1,2) = A322832(n).
T(n,k) = A339334(n,k) for all k when 1 <= n <= 7 or n = 10.
T(n,k) = A339334(n,k) for all n when k = 1 or k = 2.

A006638 Restricted postage stamp problem with n denominations and 2 stamps.

Original entry on oeis.org

2, 4, 8, 12, 16, 20, 26, 32, 40, 44, 54, 64, 72, 80, 92, 104, 116, 128, 140, 152, 164, 180, 196, 212, 228, 244, 262, 280, 298, 316, 338, 360, 382, 404, 426, 448, 470, 492, 514, 536, 562, 588, 614, 644, 674, 704, 734
Offset: 1

Views

Author

Keywords

Comments

a(n) = largest span (range) attained by a restricted additive 2-basis of length n; an additive 2-basis is restricted if its span is exactly twice its largest element. - Jukka Kohonen, Apr 23 2014

Examples

			a(10)=44: For example, the basis {0, 1, 2, 3, 7, 11, 15, 17, 20, 21, 22} has 10 nonzero elements, and all integers between 0 and 44 can be expressed as sums of two elements of the basis. Currently n=10 is the only known case where A006638 differs from A001212. - _Jukka Kohonen_, Apr 23 2014
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001212.

Extensions

Definition improved by Jukka Kohonen, Apr 23 2014
Extended up to a(41) from Kohonen (2014), by Jukka Kohonen, Apr 23 2014
Extended up to a(47) from Kohonen (2015), by Jukka Kohonen, Mar 14 2015

A066063 Size of the smallest subset S of T={0,1,2,...,n} such that each element of T is the sum of two elements of S.

Original entry on oeis.org

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

Views

Author

John W. Layman, Dec 01 2001

Keywords

Comments

If one counts all subsets S of T={0,1,2,...n} such that each number in T is the sum of two elements of S, sequence A066062 is obtained.
Since each k-subset of S covers at most binomial(k + 1, 2) members of T, we have binomial(a(n) + 1, 2) >= n + 1. It follows that A002024(n-1) is a lower bound. - Rob Pratt, May 14 2004
This is an instance of the <= 2-stamp postage problem with n denominations. For n > 0, a(n) = 1 + the smallest i such that A001212(i) >= n (adding one adjusts for the fact that A001212 has offset 1). - Tim Peters (tim.one(AT)comcast.net), Aug 25 2006

Examples

			For n=2, it is clear that S={0,1} is the unique subset of {0,1,2} that satisfies the definition, so a(2)=2.
		

Crossrefs

Extensions

a(27)-a(50) from Rob Pratt, Aug 13 2020

A295771 a(n) is the minimum size of a planar additive basis for the square [0,n]^2.

Original entry on oeis.org

1, 3, 4, 7, 8, 11, 12, 14, 16, 19, 20, 23, 24, 26
Offset: 0

Views

Author

Jukka Kohonen, Nov 27 2017

Keywords

Comments

A planar additive basis is a set of points with nonnegative integer coordinates such that their pairwise sums cover a given rectangle of points with integer coordinates. Pairwise sums of a point with itself are included.
a(n) <= 2n+1, because there is an L-shaped basis of that size.
a(n) <= 2n if n is even and nonzero, because of a square-shaped "boundary basis" with sides at coordinates 0 and n/2.

Examples

			a(3)=7: The square [0,3]^2 is covered by the pairwise sums of the L-shaped basis {(0,0),(1,0),(2,0),(3,0),(0,1),(0,2),(0,3)}, which has 7 elements.
		

Crossrefs

A295774 is the restricted version.
A001212 concerns the one-dimensional problem.
Main diagonal of A306608.

Extensions

a(12), a(13) from Jukka Kohonen, Dec 17 2018

A356852 Minimum over all order two bases for the interval [1, n] of the maximum number of ways some number in the interval [1, n] can be written as a sum of at most two elements of the basis.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
Offset: 1

Views

Author

Javier Múgica, Aug 31 2022

Keywords

Comments

a(n) >= a(n-1). Hence this sequence is defined by its jumps: "Maximum k such that there exists an order two basis for the interval [1, k] with no multiplicity greater than n". This sequence has still too few known terms to have its own entry. It starts: 5, 55, 323. The next term is >= 1006 (in all likelihood it is greater).
a(n) is the minimum over all branches of length n in A265262 of the maximum number in each branch.
If the number 0 is allowed to be part of the basis then the "sum of at most two" from the definition should be changed to "sum of two".
It is believed that a(n) tends to infinity. Erdős and Turán conjectured in 1941 that any basis of order two for all the natural numbers cannot avoid large multiplicities. The two conjectures can easily be proved to be equivalent.
The bases yielding the highest n with given a(n) = k for each k are:
1: 1 3 5 (n <= 5)
2: 1 2 4 5 7 11 16 19 24 32 40 45 52 53 (n <= 55)
3: 1 2 3 5 6 8 9 17 20 22 28 29 40 47 53 57 69 83 90 99 107 117 131 141 152 162 172 182 193 203 217 227 237 248 258 268 279 289 303 313 (n <= 324)
For k = 4 the following basis serves for n <= 1006:
1 2 3 4 5 7 8 9 12 13 17 23 33 39 49 55 64 66 80 86 95 97 111 113 126 134 140 153 162 178 181 192 203 210 231 242 254 275 281 299 303 311 325 335 346 386 405 423 435 446 469 486 504 521 538 556 590 602 620 639 656 673 690 739 772 805 822 840 855 873 890 907 940 957 974 987 996

Examples

			The basis 1, 3, 5 can serve to express every number in the interval [1, 5] in a unique way: 1 = 1, 2 = 1+1, 3 = 2+1, 4 = 2+2, 5 = 5. Hence a(1) = ... = a(5) = 1. This is the only basis with this property and cannot be extended further since 6 = 3+3 = 5+1. Therefore a(n) >= 2 for n >= 6.
The basis 1, 3, 4, 9, 11, 16, 21, 23, 28 allows one to express every number in the interval [1, 31] as a sum of one or two elements from it, hence a(6) = ... = a(31) = 2.
		

Crossrefs

A114139 Changes in United States postal rates per ounce since 1863.

Original entry on oeis.org

-2, -2, 1, -1, 1, 1, 1, 1, 2, 2, 0, 3, 2, 3, 2, 2, 3, 4, 3, 3, 1, 1, 3, 2
Offset: 1

Views

Author

Jonathan Vos Post, Feb 03 2006

Keywords

Comments

Benjamin Franklin, first Postmaster General of the United States, applied computational complexity theory to Economics by changing the business plan for American mail by changing from payment by distance to payment by weight. "Before stamps were used a person had to collect his mail at the post office and pay for it. Franklin stopped the money loss on unclaimed mail in Philadelphia by printing in his paper the names of persons who had mail awaiting them. He also developed a simple, accurate way of keeping post-office accounts. In 1753 Franklin was made deputy postmaster general for all the colonies." [Encyclopedia Britannica]

Examples

			a(1) = -2 because the rate per half ounce was lowered effective 3 March 1863 from 3 cents to 2 cents; thereafter rates were per ounce.
		

References

  • R. K. Guy, Unsolved Problems in Number Theory, C12.

Crossrefs

A140571 Decimal expansion of the universal constant in E(h), the maximum number of essential elements of order h.

Original entry on oeis.org

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

Views

Author

Jonathan Vos Post, Jul 05 2008

Keywords

Comments

A fundamental result of Erdos and Graham is that every integer basis possesses only finitely many essential elements. Grekos refined this, showing that the number of essential elements in a basis or order h is bounded by a function of h only. Deschamps and Farhi (2007) proved a best possible upper bound on this function, which contains a constant whose digits are this sequence.
Abstract: Plagne recently determined the asymptotic behavior of the function E(h), which counts the maximum possible number of essential elements in an additive basis for N of order h. Here we extend his investigations by studying asymptotic behavior of the function E(h,k), which counts the maximum possible number of essential subsets of size k, in a basis of order h. For a fixed k and with h going to infinity, we show that
E(h,k) = Theta_{k} ([h^{k}/log h]^{1/(k+1)}). The determination of a more precise asymptotic formula is shown to depend on the solution of the well-known "postage stamp problem" in finite cyclic groups. On the other hand, with h fixed and k going to infinity, we show that E(h,k) ~ (h-1) (log k)/(log log k).

Examples

			2.0572841284787934...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[(30*Sqrt[Log[1564]/1564]),10,120][[1]] (* Harvey P. Dale, Sep 27 2023 *)
  • PARI
    30*sqrt(log(1564)/1564) \\ Michel Marcus, Oct 18 2018

Formula

Equals 30*sqrt(log(1564)/1564).

Extensions

a(100) corrected by Georg Fischer, Jul 12 2021
Previous Showing 21-27 of 27 results.