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.

A274432 Products of distinct tribonacci numbers (A000213).

This page as a plain text file.
%I A274432 #12 Oct 02 2019 16:02:59
%S A274432 3,5,9,15,17,27,31,45,51,57,85,93,105,135,153,155,171,193,255,279,285,
%T A274432 315,355,459,465,513,525,527,579,653,765,837,855,945,965,969,1065,
%U A274432 1201,1395,1539,1575,1581,1737,1767,1775,1785,1959,2209,2295,2565,2635
%N A274432 Products of distinct tribonacci numbers (A000213).
%H A274432 Clark Kimberling, <a href="/A274432/b274432.txt">Table of n, a(n) for n = 1..10000</a>
%e A274432 The tribonacci numbers are 1,1,1,3,5,9,17,31,..., so that the sequence of all products of distinct members, in increasing order, is (3, 5, 9, 15, 17, 27, 31, 45,...).
%t A274432 r[1] := 1; r[2] := 1; r[3] = 1; r[n_] := r[n] = r[n - 1] + r[n - 2] + r[n - 3];
%t A274432 s = {1}; z = 60; f = Map[r, Range[z]]; Take[f, 20]
%t A274432 Do[s = Union[s, Select[s*f[[i]], # <= f[[z]] &]], {i, z}];
%t A274432 Take[s, 2 z]  (*A274432*)
%t A274432 infQ[n_] := MemberQ[f, n];
%t A274432 ans = Table[#[[Flatten[Position[Map[Apply[Times, #] &, #], s[[n]]]][[1]]]] &[
%t A274432 Rest[Subsets[Map[#[[1]] &, Select[Map[{#, infQ[#]} &, Divisors[s[[n]]]], #[[2]] && #[[1]] > 1 &]]]]], {n, 2, 300}];
%t A274432 Map[Apply[Times, #] &, Select[ans, Length[#] == 2 &]] (* A274433 *)
%t A274432 Map[Apply[Times, #] &, Select[ans, Length[#] == 3 &]] (* A274434 *)
%t A274432 (* _Peter J. C. Moses_, Jun 17 2016 *)
%Y A274432 Cf. A160009, A274280, A274433 (binary products), A274434 (trinary products).
%K A274432 nonn,easy
%O A274432 1,1
%A A274432 _Clark Kimberling_, Jun 22 2016