The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A350604 Irregular triangle read by rows: row n lists the elements of the set S_n in increasing order, where S_1 = {1}, and S_{n+1} is the union of S_n, 2*S_n, and 3*S_n. 3
1, 1, 2, 3, 1, 2, 3, 4, 6, 9, 1, 2, 3, 4, 6, 8, 9, 12, 18, 27, 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 36, 54, 81, 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 32, 36, 48, 54, 72, 81, 108, 162, 243, 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 32, 36, 48, 54, 64, 72, 81, 96, 108, 144, 162, 216, 243, 324, 486, 729 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
S_n contains n*(n+1)/2 elements.
The rows converge to A003586.
LINKS
EXAMPLE
The first few sets S_n are:
[1],
[1, 2, 3],
[1, 2, 3, 4, 6, 9],
[1, 2, 3, 4, 6, 8, 9, 12, 18, 27],
[1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 36, 54, 81],
[1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 32, 36, 48, 54, 72, 81, 108, 162, 243],
...
MAPLE
T:= proc(n) option remember; `if`(n=1, 1, sort(
[map(k-> [k, 2*k, 3*k][], {T(n-1)})[]])[])
end:
seq(T(n), n=1..7); # Alois P. Heinz, Jan 12 2022
MATHEMATICA
S[1] = {1};
S[n_] := S[n] = Union[S[n-1], 2*S[n-1], 3*S[n-1]];
Table[S[n], {n, 1, 7}] // Flatten (* Jean-François Alcover, Jun 02 2022 *)
PROG
(Python)
from itertools import chain, islice
def A350604_gen(): # generator of terms
s = {1}
while True:
yield from sorted(s)
s = set(chain.from_iterable((x, 2*x, 3*x) for x in s))
A350604_list = list(islice(A350604_gen(), 30)) # Chai Wah Wu, Jan 12 2022
CROSSREFS
Sequence in context: A276146 A210530 A076645 * A011448 A174981 A067280
KEYWORD
nonn,look,tabf
AUTHOR
N. J. A. Sloane, Jan 12 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 1 08:15 EDT 2024. Contains 373015 sequences. (Running on oeis4.)