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

A079300 a(n) = number of shortest addition chains ending in n.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 5, 1, 3, 4, 15, 3, 10, 14, 4, 1, 2, 7, 33, 6, 29, 40, 4, 4, 14, 24, 5, 23, 132, 12, 77, 1, 2, 4, 43, 12, 39, 92, 20, 8, 23, 84, 4, 69, 14, 8, 220, 5, 12, 36, 4, 38, 205, 16, 156, 32, 173, 352, 37, 24, 91, 233, 87, 1, 2, 4, 23, 6, 29, 134, 1258, 18, 49, 104, 32
Offset: 1

Views

Author

David W. Wilson, Feb 09 2003

Keywords

Comments

An addition chain is a finite sequence of whole numbers starting with 1 in which each subsequent term is the sum of two (not necessarily distinct) earlier terms. - Glen Whitney, Nov 08 2021

Examples

			7 has a(7) = 5 shortest addition chains: (1,2,3,4,7), (1,2,3,5,7), (1,2,3,6,7), (1,2,4,5,7), (1,2,4,6,7).
		

Crossrefs

Cf. A079301, A079302, the number of shortest addition chains of Brauer and non-Brauer type, respectively.

Formula

a(n) = A079301(n) + A079302(n). - Glen Whitney, Nov 06 2021

Extensions

More terms from Don Reble, Mar 31 2006
Name edited by Glen Whitney, Nov 08 2021

A118844 Numbers that have only Brauer chains as shortest addition chains.

Original entry on oeis.org

2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 20, 22, 23, 24, 27, 28, 30, 32, 33, 34, 35, 36, 40, 43, 44, 45, 46, 48, 51, 54, 56, 60, 64, 65, 66, 67, 68, 70, 72, 77, 80, 83, 85, 86, 88, 90, 92, 96, 99, 102, 108, 112, 119, 120, 128, 129, 130, 131, 132, 134, 135, 136
Offset: 1

Views

Author

Hugo Pfoertner, May 01 2006

Keywords

Comments

Indices of zeros in A079302. See A079301 for the definition of a Brauer addition chain.

Crossrefs

Cf. A079301 (number of minimal Brauer chains for n), A079302 (number of minimal non-Brauer chains for n), A118845 (numbers with shortest non-Brauer chains).

A118845 Numbers that have non-Brauer chains among their shortest addition chains.

Original entry on oeis.org

13, 19, 21, 25, 26, 29, 31, 37, 38, 39, 41, 42, 47, 49, 50, 52, 53, 55, 57, 58, 59, 61, 62, 63, 69, 71, 73, 74, 75, 76, 78, 79, 81, 82, 84, 87, 89, 91, 93, 94, 95, 97, 98, 100, 101, 103, 104, 105, 106, 107, 109, 110, 111, 113, 114, 115, 116, 117, 118, 121, 122, 123
Offset: 1

Views

Author

Hugo Pfoertner, May 01 2006

Keywords

Comments

Indices of nonzero terms in A079302. See A079301 for the definition of a Brauer addition chain.

Crossrefs

Cf. A118846 (corresponding counts of minimal non-Brauer chains), A079301 (number of minimal Brauer chains for n), A079302 (number of minimal non-Brauer chains for n), A118844 (numbers without shortest non-Brauer chains).

A349044 Non-Brauer numbers.

Original entry on oeis.org

12509, 13207, 13705, 15473, 16537, 20753, 22955, 23219, 23447, 24797, 25018, 26027, 26253, 26391, 26414, 26801, 27401, 27410, 30897, 30946, 31001, 32921, 33065, 33074, 41489, 41506, 43755, 43927, 45867, 46355, 46419, 46797, 46871, 46894, 47761, 49373, 49577, 49593, 49594, 49611, 50036, 50829, 51667
Offset: 1

Views

Author

Glen Whitney, Nov 06 2021

Keywords

Comments

A sequence 1=a_0 < a_1 < a_2 < ... < a_l = n is an addition chain (of length l) for n if for each i, 0 < i <= l, there are j_i and k_i such that a_i = a_j_i + a_k_i. Such a chain is called a star-chain or Brauer chain if in addition each j_i = i-1. A number is a Brauer number if among its shortest addition chains there is a Brauer chain, and non-Brauer otherwise.
The length of a shortest Brauer chain for n is often denoted l^*(n). A003313(n) gives the length of a shortest addition chain for n. Thus n is in this sequence if and only if A003313(n) < l^*(n).
For entries at least through 41506, these numbers satisfy l^*(n) = A003313(n) + 1. It seems likely that larger differences between l^*(n) and A003313(n) occur for later entries in this sequence, but it is unclear whether any n with a larger difference have been found.
These differences between l^*(n) and A003313(n) are highlighted by the following formulation: consider a machine which starts with a 1 in "cache" and can then at each step execute one of two operations: (1) Add any number that has ever been in cache to the current contents of cache, or (2) Restore any number that has previously been in cache to the cache, replacing its prior contents. Then n is in this sequence if and only if there is a shortest program that results in n in cache that includes a "Restore" step. Note further that if there is an entry in this sequence such that l^*(n) > A003313(n)+1, then all shortest programs producing n in cache would contain a "Restore" operation. The definition of A293771 is based on a similar machine with a separate "Store" operation that puts the cache value into "memory," and one could formulate an analogous conjecture here that the "Restore" operation is never necessary for a shortest program. The existence or not of an n in this sequence such that l^*(n) > A003313(n)+1 would settle this question and provide mild evidence one way or the other on the conjecture in A293771.

Examples

			The shortest star-chains for 12509 have length 18; one example is 1,2,3,4,7,11,18,25,43,86,172,344,688,1376,1401,2777,5554,6955,12509. (By inspection, each number in this chain is the sum of the prior number and another number in the sequence, possibly also the prior number.) On the other hand, there are addition chains of length 17 for 12509, e.g., 1,2,4,6,12,13,24,48,96,192,384,768,781,1562,3124,6248,12496,12509. (Here a_5 = a_3+a_3, preventing this from being a star-chain.) All numbers smaller than 12509 include a star chain among their shortest addition chains (by exhaustive search). Hence 12509 is the first number in this sequence.
		

Crossrefs

Cf. A003313, the length of a shortest addition chain for n.
Cf. A079301, A079302, the number of shortest addition chains for n which are Brauer chains and which are non-Brauer chains, respectively.

Formula

A079301(n) = 0 if and only if n occurs in this sequence.

A118846 Number of non-Brauer chains corresponding to the entries of A118845.

Original entry on oeis.org

1, 2, 3, 1, 2, 18, 13, 6, 5, 2, 3, 6, 37, 1, 2, 3, 34, 17, 25, 44, 4, 15, 32, 7, 3, 244, 7, 13, 2, 8, 6, 129, 3, 6, 9, 73, 77, 69, 45, 90, 13, 1, 2, 3, 49, 15, 4, 46, 81, 4, 25, 44, 13, 20, 62, 3, 73, 7, 9, 20, 35, 7, 52, 4, 20, 674, 3, 3, 6, 163, 403, 673, 124, 8, 15, 2, 20, 6, 157, 11
Offset: 1

Views

Author

Hugo Pfoertner, May 01 2006

Keywords

Comments

See A079301 for the definition of a Brauer addition chain.

Examples

			a(3)=3 because there exist 3 different non-Brauer shortest addition chains for n=A118845(3)=21: [1 2 4 5 8 13 21] and [1 2 4 5 8 16 21] with 8=4+4 (5 not part of sum), [1 2 4 8 9 12 21] with 12=8+4 (9 not part of sum).
		

Crossrefs

Cf. A118845 [numbers with shortest non-Brauer chains], A079301 [Number of minimal Brauer chains for n], A079302 [Number of minimal non-Brauer chains for n], A118844 [numbers without shortest non-Brauer chains].
Showing 1-5 of 5 results.