A026480 a(1) = 1, a(2) = 2, a(3) = 4, and for n > 3, a(n) is the least positive integer > a(n-1) not of form a(i)*a(j)*a(k) for 1 <= i <= j <= k < n.
1, 2, 4, 5, 6, 7, 9, 11, 13, 15, 17, 19, 21, 23, 27, 29, 31, 33, 37, 39, 41, 43, 47, 51, 53, 57, 59, 61, 67, 69, 71, 73, 79, 83, 87, 89, 93, 97, 101, 103, 107, 109, 111, 113, 123, 127, 128, 129, 131, 137, 139, 141, 149, 151, 157, 159, 160, 163, 167, 173, 177, 179, 181
Offset: 1
Keywords
Links
- David A. Corneth, Table of n, a(n) for n = 1..23405 (all terms up to 10^5).
- David A. Corneth, PARI program
Crossrefs
There are six related sequences: A026477: 1 <= i < j < k < n starting 1,2,3; A026478: 1 <= i <= j <= k < n starting 1,2,3; A026479: 1 <= i < j < k < n starting 1,2,4; A026480: 1 <= i <= j <= k < n starting 1,2,4; A026481: 1 <= i < j < k < n starting 1,3,4; A026482: 1 <= i <= j <= k < n starting 1,3,4.
Programs
-
Mathematica
a = {1, 2, 4}; no = {1 2 4}; Do[x = SelectFirst[Range[Last[a] + 1, 1000], ! MemberQ[no, #] &]; AppendTo[a, x]; no = Union[Times @@@ Tuples[a, {3}]], 60]; a (* Robert Price, May 26 2019 *)
Extensions
Name corrected by Charles R Greathouse IV, Sep 23 2016
Comments